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 and satisfies the break condition, if one is attached. (For more information, see Condition.) 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:
- Break always (the default).
- Break when the hit count equals a specified value.
- Break when the hit count equals a multiple of a specified value.
- Break when the hit count is greater or equal to a specified value.
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. For more information, see Specifying or Changing the Hit Count.
If you specify a Hit Count property for a breakpoint, you can open the Hit Count dialog box to view or reset the current hit count at any time while your program is running.