Conditional Breakpoints

A condition is an expression set on a breakpoint that triggers the breakpoint when the expression evaluates to True. You can set a condition on the following types of breakpoints:

You can set a condition when you create the breakpoint using the Add Breakpoint dialog box. Type the condition in the Condition text field.

If you want to place a condition on an existing breakpoint, use the Breakpoints view in the Debugger window. Right-click the breakpoint and choose Properties. Type the condition in the Condition field of the Properties window.

When you specify a condition, follow the Java syntax rules. You can include anything that can be on the right side of the equal sign (=).

In the condition, you can include any variables and methods that are within the current scope. The following are exceptions:

In the Source Editor, the symbol Conditional
breakpoint icon indicates a conditional breakpoint set on the adjacent line.

See also
Setting a Breakpoint on a Line
Setting a Breakpoint on a Method Name
Setting a Breakpoint on an Exception
Setting a Breakpoint on a Variable

Legal Notices