07.20 Breakpoint Hit Count
MENU | [Context Menu] | Hit Count |
COMMAND | EditorContextMenus.CodeWindow.Breakpoint.BreakpointHitCount |
VERSIONS | 2005, 2008, 2010 |
CODE | vstipDebug0019 |
Sometimes you might not want a breakpoint to stop the first time it is encountered. This is particularly true when you are working with loops and want to stop after a number of iterations. You can set a breakpoint so that it does not break every time but only when it is hit a certain number of times. Just right-click any breakpoint, and click Hit Count:
The Breakpoint Hit Count dialog box appears:
The default is to “break always,” but you can change that to one of the following options: ...
Get Coding Faster: Getting More Productive with Microsoft® Visual Studio® now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.