For the line selected in the preceding Breakpoints dialog box, set conditions that must be satisfied for the breakpoint to be effective while debugging. If the condition is not met, the breakpoint will be ignored.

To set a condition for activating all breakpoints in the current program, click the Global radio button.

To replace the current condition of the selected line, click Replace.

To add a new conditional expression to the selected line, click New. Will not replace an existing conditional expression.

The conditional expression could be the value of a variable, a global condition, or any conditional expression that defines a condition in which the current breakpoints should be active.

Dialog box options

 

Condition

Type an expression for the line currently selected in the Breakpoints dialog box.

Line

The conditional expression will apply only to the line currently selected in the Breakpoints dialog box.

Global

The conditional expression will apply to the entire program. You might use this if you want to activate all breakpoints when a global variable reaches a certain value.

How to get there: In the debugger, choose Debugger|Breakpoints. In the Breakpoints dialog box, click the Conditions button.