Debug Scripts with Breakpoints

The following describes how to work with breakpoints.

To Do this
Add/Remove a breakpoint

Locate the cursor in the script where you want to insert the breakpoint and then do one of the following:

  • Select Replay > Toggle Breakpoint.

  • Press F9.

  • Click in the left margin if the script, adjacent to where you want to insert the breakpoint.

Add: The Breakpoint symbol () appears in the left margin of the script, and VuGen highlights the line in the script.

Remove: The Breakpoint symbol () is removed from the left margin of the script.

Enable/Disable a breakpoint
  1. Click View > Debug > Breakpoints to display the Breakpoints pane.
  2. Select the appropriate Enable check box to enable a breakpoint. The Breakpoint symbol () appears in the left margin of the script.
  3. Clear the appropriate Enable check box to disable a breakpoint. The Disabled Breakpoint symbol () appears in the left margin of the script.

When a breakpoint is disabled, script execution continues at the disabled breakpoint and is paused at the following enabled breakpoint.

Manage breakpoints The Breakpoints pane allows you to remove, enable, and disable breakpoints in a Vuser script. For user interface details, see Breakpoints Pane.
Navigate to a specific breakpoint in a Vuser script
  • In the Breakpoints pane, select the specific breakpoint to which you want to navigate, and then click the Go to source button .

  • In the Breakpoints pane, double-click the breakpoint to which you want to navigate.

The cursor flashes in the Editor at the start of the line containing the breakpoint.

Run a script with breakpoints

Begin running the script as usual. VuGen pauses script execution when it reaches a breakpoint. You can examine the effects of the script run up to the breakpoint, make any necessary changes, and then restart the script from the breakpoint.

To resume execution, select Replay > Run. Once restarted, the script continues until it encounters another breakpoint or the end of the script.

Back to top

See also: