Setting a Conditional Breakpoint

See Also

You can set conditions on a breakpoint so that execution only breaks if the condition is true. You can set conditions on any breakpoint except thread and class breakpoints.

To set conditions on a breakpoint:

  1. Create a new breakpoint or open an existing breakpoint's customizer as described above.
  2. Type the condition in the Condition field. The condition must follow the Java syntax rules. The condition may include anything that can be on the right side of the equal sign (=). The condition may also include variables and methods that are within the current context. The following are exceptions:

Conditional line breakpoints have a conditional breakpoint icon icon in the left margin of the Source Editor.

See Also
Breakpoints in the IDE
Setting a Java Breakpoint
Organizing Breakpoints Into a Group
About Debugging Java Applications

Legal Notices