- Do one of the following sets of tasks:
- From the editor area:
- In the editor area, open the file where you want to set a condition for a breakpoint.
- Directly to the left of the line where you want to add the breakpoint, open the marker bar pop-up menu and select Breakpoint Properties....
- From the breakpoints view:
- In the Breakpoints view select the breakpoint to set the condition for
- In the context menu of the view, select Properties....
- A Breakpoint properties dialog will open.
- In the properties dialog, check the Enable Condition checkbox. To disable the condition, uncheck this checkbox.
- In the Condition field enter the boolean expression for the breakpoint condition.
- Click Ok to close the dialog and commit the changes.
While the breakpoint is enabled, thread execution suspends before that line of code is executed if the breakpoint condition evaluates to true. The debugger selects the thread that has suspended and displays the stack frames on that thread's stack. The line where the breakpoint was set is highlighted in the editor in the Debug perspective.
A conditional breakpoint has a question mark overlay on the breakpoint icon.

Debugger
Java perspectives
Java editor

Adding breakpoints
Applying hit counts
Catching Java exceptions
Removing breakpoints
Setting method breakpoints
Stepping through the execution of a program

Breakpoints view