Setting Debug Breakpoints

Debug Breakpoints can be added and removed in two ways:

  1. By left-clicking the mouse button while holding the mouse pointer over the line number to toggle

  2. By placing the caret in the line to toggle then selecting Debug:Toggle Breakpoint from the MenuBar or clicking the ToolBar icon.

Using the Debug MenuBar / ToolBar Buttons

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.

Debug Panes

The Debug Panes are used to provide script code and data information while debugging.  The Debug Panes consist of three windows:

The Debug Panes can be shown or hidden by selecting View:Debug Panes from the MenuBar or ToolBar icon.