Using Step Over and Step Into
Unlike other programming languages, the if-else, switch, for, and so on, control structures in Tcl are commands instead of special grammar tokens. When they are entered, a new stack frame is created. This means if you use Step Over on them, you skip the whole structure. To enter the clauses or bodies of these structures, you must use Step Into.
Use Step Out to get out of the current
frame
. Normally, this means getting to the caller proc.
Sometimes, the program stops in an if-else, switch, and so on, control structure. In these
cases, when using Step Out it arrives at the next command
after the structure.
For more information on frame
, see the manual
page of info frame
. See https://www.tcl.tk/man/tcl/TclCmd/info.htm#M15.
"TIP 280: Add Full Stack Trace Capability With Location Introspection" has additional information. See https://core.tcl.tk/tips/doc/trunk/tip/280.md.