--- éteint par défaut
état: off
une note @ n'est pas un type: {3.0 4.0} {}
rien ne s'arrête: 5.0
type def @x: ERREUR bad type name "@x"
--- la trace, par un crochet
crochet: rec
état: on
@step set 2 {3.0 4.0}
@step norme 1 {3.0 4.0}
@step lindex 1 {3.0 4.0}
@step list 1 {3.0 4.0}
@step norme 1 {3.0 4.0}
@step lindex 1 {3.0 4.0}
éteint : rien:
--- une erreur du crochet arrête la commande
arrêt: ERREUR arrêt sur norme
sans note : rien: 5.0
--- pas à pas : type debug next
@step norme
@next expr
@next set
@next expr
@step lindex
--- le crochet par défaut (@trace : sans arrêt)
@trace set argument 2 = 3.0 4.0 (t103_type_debug.tcl:60, in (global))
@trace list argument 1 = 3.0 4.0 (t103_type_debug.tcl:61, in (global))
@trace ::norme p = 3.0 4.0 (t103_type_debug.tcl:13, in chemin)
@trace lindex argument 1 = 3.0 4.0 (t103_type_debug.tcl:9, in norme)
--- proto-types
notes: angle pointt vitesse
vitesse: count 2 where t103_type_debug.tcl:70 commands set samples {{12.5 t103_type_debug.tcl:70} {abc t103_type_debug.tcl:71}} status note
angle: seen 1 time, first at t103_type_debug.tcl:72, via set
values: 0.5
not a type yet
pointt: seen 3 times, first at t103_type_debug.tcl:68, via set, norme, lindex
values: 3 4
not a type yet
vitesse: seen 2 times, first at t103_type_debug.tcl:70, via set
values: 12.5 | abc
not a type yet
-- après définition
angle: seen 1 time, first at t103_type_debug.tcl:72, via set
values: 0.5
now a type, but:
0.5 (t103_type_debug.tcl:72): angle needs 2 values but got 1
pointt: seen 3 times, first at t103_type_debug.tcl:68, via set, norme, lindex
values: 3 4
not a type yet
vitesse: seen 2 times, first at t103_type_debug.tcl:70, via set
values: 12.5 | abc
now a type, but:
abc (t103_type_debug.tcl:71): expected floating-point number but got "abc"
statut: mismatch note mismatch
vidé: no notes seen
--- erreurs
sous-commande: ERREUR wrong # args: should be "type debug ?on|off? | next | hook ?command? | notes | report | clear"
variable {@trace}x: ERREUR "@trace" is an instrument note, not a type
type cast @trace: ERREUR "@trace" is an instrument note, not a type