Conditional breakpoints and conditional watchpoints only break execution when a coded condition or a hit count is satisfied. You can combine both a condition and a hit count, where both must be satisfied before execution will break.
To set a conditional breakpoint or watchpoint:
), method breakpoint icon (
), or watchpoint icon (
) in the marker bar, and then select
Breakpoint Properties.
This opens a Properties dialog box.
and select the required operator, and then enter the required value.
The conditional breakpoint or watchpoint is set, as indicated in the marker bar, and will be in effect the next time you debug the application.
When debugging conditional watchpoints, since execution breaks when the item has been changed, the cursor position will be on the statement after the statement that caused the data item to change value.