image

Trace

image

Tracing is like executing, only it’s slower β€” slow enough that you can actually see the green arrow moving along the path of execution.

To trace:

The speed of tracing is determined by the trace speed slider. To see the trace speed slider:

The trace speed slider ranges between “tortoise” at the left and “hare” at the right.

image

Tracing is in one sense just a slower form of execution, and will pause for the same reasons (e.g., because a breakpoint is encountered, or because you issue the Pause command). However, what’s really happening is that Script Debugger is pausing and resuming after every executed line. This means that you can see more than the green arrow moving β€” you can also see the call stack growing and shrinking, and the variable values changing, and successive results appearing, just as you would if you if were repeatedly issuing the Step Into command.

Trace has the same options for executing handlers as Execute.



image
Step Call Stack
image