Using conditions with breakpoints

The debugger allows you to associate a condition with a breakpoint, so that execution stops only when the line is executed and the condition is met.

To associate a condition with a breakpoint:

  1. From the Source window, select Break→Display. The Breakpoints window is displayed.

  2. In the Breakpoints window, click a breakpoint to select it.

  3. Select Break→Condition. A window is displayed with a field for entering an expression. The execution will stop when the condition is true.

    The expressions used here are the same as those that can be used in the Inspection window, and include the following: