Hit Counts

A hit count can be applied to line breakpoints and method entry breakpoints. When a hit count is applied to a breakpoint, the breakpoint suspends execution of a thread the Nth time it is hit--but never again, until it is re-enabled or the hit count is changed.

1.

Select the breakpoint to which a hit count is to be added.

2.

From its context menu, select Hit Count.

3.

In the Enter the new hit count for the breakpoint field, type the number of times you want to hit the breakpoint before suspending execution.

Note: Entering 0 means that no hit count should be used (i.e., suspend every time the breakpoint is hit).

4.

When the breakpoint is hit for the Nth time, the thread that hit the breakpoint suspends.

5.

The breakpoint is disabled until either it is re-enabled or its hit count is changed.