| |||
Home > Controlling the Behavior of Breakpoints > Setting a breakpoint that activates after a number of passes > Procedure when using the generic breakpoint dialog box |
To delay the activation of a breakpoint for a specified number of hits:
Open the Create Breakpoint or Edit Breakpoint dialog box as appropriate.
Click More... on the breakpoint dialog box you are using. The breakpoint behavior controls are displayed. Figure 12.10 shows an example.
Click Add in the Conditions group. The Add Condition dialog box is displayed. Figure 12.11 shows an example.
Select the Software Pass Count condition.
Enter the required number of hits before the breakpoint is to activate. For example, if you enter a value of five, then the breakpoint does not activate until hit six.
Click OK to close the Add Condition dialog box. The condition is added to the breakpoint conditions list.
Click OK to set the conditional breakpoint, and close the breakpoint dialog box you are using.
The breakpoint is identified by a yellow disc.
Breakpoints that have conditions assigned to them include
the +Qual
suffix on the breakpoint type shown
in the Break/Tracepoints view. Figure 12.12 shows an example of a breakpoint that
has a condition assigned to it.
If you are using a debug target that supports it, a pass count can be used with a hardware breakpoint.