debugger is started immediately (i.e., in the middle of the debug command
(0) or start (1) the debugger on the next command
Controls a Tcl debugger allowing
you to step through statements, set breakpoints, etc.
With no arguments, a 1 is
returned if the debugger is not running, otherwise a 0 is returned.
With a 1 argument, the debugger
is started. With a 0 argument, the debugger is stopped. If
a 1 argument is preceded by the -now flag, the debugger is started immediately
(i.e., in the middle of the debug command itself). Otherwise, the
debugger is started with the next Tcl statement.
The debug command does not
change any traps.
is excerpted from the O'Reilly book "Exploring Expect" by Don Libes, and
can also be found in the manpage on many UNIX platforms.