Setting a Conditional Breakpoint

A conditional breakpoint pauses the execution of your program when a specified condition evaluates to true. You can set conditional breakpoints if you are running the (JPDA).

To set a conditional breakpoint:

  1. From the main menu, choose Debug New Breakpoint (Ctrl-Alt-F8).

  2. In the Add Breakpoint dialog box, select the breakpoint type from the combo box and enter its settings (such as class name or line number).

  3. In the Condition text field, type the condition under which the breakpoint should be evaluated.

    This condition must be an expression that evaluates to true. For example, to stop at a breakpoint when x == 75, type x == 75 in the text field.

  4. Click OK.

    The breakpoint is added to the list in the Breakpoints pane of the Debugger window.
See also
Add Breakpoint Dialog Box
Removing a Breakpoint
Installing the JPDA

Legal Notices