| Run
| Run a script.
| |
| Run under Debugger
| Run a script under control of the debugger.
| |
| Pause
| Pause execution of a script.
| |
| Stop
| Stop execution of a script.
| |
| Step Over
| Step over a routine.
| |
| Step Into
| Step into a routine.
| |
| Step Out
| Step out of a routine.
|
The second script, called B, is:
The yellow execution arrow shows where execution has stopped. Click the Run Under Debugger button to continue execution. The script will stop on a breakpoint within the SayHello sub in script B.
It will also mark the respective item in the Call Stack pane with a green
arrow as well:
The Variables pane will display "components" and "anotherScript" declared
within the scope of this call. The "components.Count+1" entry in the Watches pane
will read "3". Double-click the second line within the Call Stack pane, reading module B, function Main, line 7. Double-clicking a line in the Call Stack pane is an alternative way to Go To a call. This will activate script B.
Note that line 7 that contains the current call is marked with a green arrow
and line 3 containing the current execution line is still displayed with a
yellow arrow overlaid on the breakpoint dot. The Variables pane will display no
entries since the Main routine in script B declares no local variables. The components.Count + 1 entry within the Watches pane will read "Variable is undefined: components" since "components" is inaccessible within the scope of the Main routine in script B.
Double-click the first line within the Call Stack pane, for module B, function SayHello and line 3. The Variables pane will display the name str and value "Hello!" as well as the type String if the Type column is on. The Watches pane will still refuse to evaluate the
value of the components.Count+1 expression, since it inacessible with the scope of the SayHello routine.