Every breakpoint, including watchpoints, can have a condition. This condition is an expression evaluated when the breakpoint is hit to produce a true or false result. If the expression is true or evaluation of the expression fails, execution of the program you are debugging halts. If the expression is false, the program you are debugging keeps executing.
Breakpoint conditions are inherited. For example, setting a condition on a class breakpoint sets the same condition on the all the child class instance breakpoints.
Setting conditions on a breakpoint overrides any conditions that breakpoint may have inherited.
There are two special variables which may be used in breakpoint condition expressions:
Note that both variables start with two (2) underscores. These variables are integer types.
![]()
Types of Breakpoints
Expressions Supported by the Debugger
![]()
Set Conditions on Breakpoints
Remove Conditions from Breakpoints
