Stopping Script Playback at Selected Points

You can configure scripts to suspend at set points during playback and enter debug mode. The points at which you set a script to stop on playback are called breakpoints. Breakpoints let you manage playback to facilitate debugging, and can help isolate where a script fails. Breakpoints help to analyze how a script plays back even if there are no errors in the script. When you set a breakpoint, playback stops at the breakpoint and enters debug mode.

Setting breakpoints enables a script to play back to any specific point of interest. Place breakpoints at specific lines where you want to stop playback, such as any point where you want to see the state of data contained in variables in the Monitor Variables window. Playback executes to the first breakpoint and suspends until you tell the script to proceed.

  1. Open the script in which you want to set a breakpoint.
  2. Click the line where playback is to be suspended.
  3. Click Debug > Set/Clear Breakpoint. A breakpoint icon appears in the column next to the line number. Playback executes to the set breakpoint. When playback suspends at a breakpoint, the script highlights the breakpoint line in yellow with a yellow arrow pointing to the line.
During debugging, you can control line execution during playback. You can also configure scripts to playback to or from a specific line.
Tip: Select a line with a breakpoint and press F9 to delete the breakpoint from the selected line. Press Ctrl+Shift+F9 to delete all breakpoints from a script.