A break condition is an expression that gets evaluated when the breakpoint is reached. The result of the evaluation determines whether the breakpoint is hit. If the breakpoint is hit and the hit count is correct, the debugger breaks execution. For more information, see Hit Count.
To specify or change a breakpoint condition, you must open the Breakpoint Condition dialog box. For more information, see Specifying or Changing Breakpoint Conditions.
The condition can be any valid expression recognized by the debugger. For more information, see Expressions in the Debugger.
You can specify how the condition is satisfied:
- When the expression is true (is true in the Breakpoint Condition dialog box)
- When the value of the expression changes (has changed in the Breakpoint Condition dialog box)
Note When you first set a breakpoint that has changed, the expression has no value. When the breakpoint is reached, the expression is evaluated and stored. The debugger does not consider that evaluation and store to be a change, so the debugger does not stop the first time the breakpoint is reached.