Setting a conditional breakpoint

10-Jul-2025

Conditional breakpoints in winIDEA can help you stop the CPU on the Xth pass through a function:

Each time the breakpoint is run into, the expression (if present) is evaluated. If it is evaluated as true, it adds one more pass count. When the breakpoint is passed the specified number of times, the breakpoint is triggered, and the CPU stops.

To set up conditional breakpoints:

1. Open Debug | Breakpoints.

2. Follow how-to Set a conditional breakpoint on the Xth pass.


The CPU stops each time a conditional breakpoint is passed to evaluate the condition and then resumes execution. 


If the option Reset conditional BP counters when CPU stops in Debug | Debug Options is enabled, the pass counter will reset each time a conditional breakpoint is hit.


More resources in winIDEA Help

Was this answer helpful?