Debug Breakpoints can be added and removed in two ways:
By left-clicking the mouse button while holding the mouse pointer over the line number to toggle
By placing the caret
in the line to toggle then selecting Debug:Toggle
Breakpoint from the MenuBar
or clicking the ToolBar icon.
After adding one or more breakpoints to the script the Debug MenuBar and ToolBar buttons can be used to control script execution while analyzing the script.
Go:
Starts or continues script debugging by executing until the next Debug
Breakpoint is hit.
Stop
Debugging: Stops script debugging.
Step
Into: Steps into subroutine, function or procedure. Script execution
will halt on the next statement within the subroutine, function or procedure.
Step
Over: Steps over subroutine, function or procedure. Script execution
will halt on the next statement following the subroutine, function or
procedure.
Step
Out: Steps out of subroutine, function or procedure. Script execution
will halt on the next statement following the subroutine, function or
procedure.
Run to
Cursor: Executes script until the line number where the caret resides
is hit.
Toggle
Breakpoints: Adds or removes a Debug Breakpoint on the line where
the caret resides.
Clear
All Breakpoints: Clears all Debug Breakpoints.
Evaluate:
Invokes the Evaluate Expression dialog. Enter an expression to evaluate
then press the Evaluate button.
The Debug Panes are used to provide script code and data information while debugging. The Debug Panes consist of three windows:
The Debug Process / Thread Window - Displays a list of processes and threads involved in debugging.
The Call Stack Window - Displays a list of nested subroutines, functions and procedures showing a path of execution to the current call stack.
The Variable Window - Displays a list of local variables of the current call stack and their values.
The Debug Panes can be shown or hidden by selecting View:Debug Panes from the MenuBar
or ToolBar icon.