Setting breakpoints

A breakpoint is a place in your code at which the debugger pauses execution, giving you the opportunity to examine current values or begin stepping through each line. The debugger pauses before executing the line containing the breakpoint. The debugger identifies a breakpoint by highlighting the related line of code and placing a breakpoint symbol next to it.

Set a breakpoint

About this task

You can set multiple breakpoints throughout your code, with multiple breakpoints in the same block of code, or if desired, breakpoints in multiple code blocks. The debugger pauses at the first breakpoint encountered during code execution. After it pauses, the debugger ignores other breakpoints until you continue normal execution.

You can set a breakpoint in a rule condition statement, as well. You cannot set a breakpoint on a comment or on code contained in a PCF file.

Procedure

  1. Place the cursor on the line of code on which to set the breakpoint.
  2. On the Run menu, click Toggle Line Breakpoint. You can also click in the gray column next to a code line:


View a breakpoint

Procedure

On the Run menu, click View Breakpoints.

Results

Selecting this menu item opens the View Breakpoints dialog in which you can do the following:

  • View all of your currently set breakpoints
  • Deactivate any or all of your breakpoints (which makes them non-functional, but does not remove them from the code)
  • Remove any or all breakpoints
  • Navigate to the code that contains the breakpoint

Thus, from this dialog, you can deactivate, remove, or add a breakpoint.

Remove a breakpoint

Procedure

  1. Place the cursor on the line of code containing the breakpoint to remove.
  2. On the Run menu, click Toggle Line Breakpoint. You can also click the breakpoint symbol next to the line of code.