NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Hit Count

The hit count is the number of times a breakpoint is hit. For a location breakpoint, this is the number of times execution reaches the specified location. For a data breakpoint, it is the number of times the value of the variable changes.

The Hit Count property determines how many hits occur before execution breaks.

By default, execution breaks every time a breakpoint is hit. If you specify a Hit Count property, you can choose to:

You can specify a hit count for any type of breakpoint — function, file, address, or data.

To specify or edit the Hit Count property, you must Open the Hit Count Dialog Box.

If you specify a Hit Count property for a breakpoint, you can open the Hit Count dialog box to view the current hit count at any time while your program is running.

Tip The debugger does not keep track of the current hit count if the default mode (break always) is selected. If you want to break every time the breakpoint is hit, but you also want to keep track of the hit count in the dialog box, you must choose break when the hit count is a multiple of 1.

See Also

Breakpoints | Breakpoint Hit Count Dialog Box