Set Conditions on Breakpoints

You can change the effect a breakpoint has on the execution of your program during debugging by setting a condition on the breakpoint.

To set a condition on a breakpoint:

  1. Obtain a details view for the breakpoint you want to set a condition on.
  2. Enter a C++ expression supported by the debugger in the Condition field.

If the condition is valid, two new lines are added to the details view of the breakpoint : Condition Owner and Expression.

Condition Owner indicates the breakpoint from which the condition is inherited. If the breakpoint does not inherit any conditions, the owner is "self".

Expression shows the expression you just entered.

If the breakpoint is one that will be triggered when you are debugging your program, a Last Evaluation line will appear. This field will  say either "Never been evaluated", "true", or "false", depending on the result of the conditions.



Breakpoint Conditions
Expressions Supported by the Debugger


Enable, Disable, or Delete Breakpoints from a Breakpoints View
Set Breakpoints Within Debug Pages
Set Breakpoints Before Debugging
Remove Conditions from Breakpoints