4.7.2.4 Hit Count Keeps Track of How Many Times a Breakpoint is Hit

By default, execution breaks whenever hitting a breakpoint. 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 than or equal to a specified value

If you want to keep track of the number of times a breakpoint is hit but never break execution, you can set the hit count to a very high value to never hit the breakpoint.

The specified hit count is retained only for the debugging session. When the debugging session ends, the hit count is reset to zero.