Microsoft KB Archive/125473

= DOC: Pass Counts for Breakpoints Undocumented =

Article ID: 125473

Article Last Modified on 12/1/2003

-

APPLIES TO


 * Microsoft Visual C++ 2.0 Professional Edition
 * Microsoft Visual C++ 2.1
 * Microsoft Visual C++ 6.0 Enterprise Edition
 * Microsoft Visual C++ 6.0 Professional Edition
 * Microsoft Visual C++ 6.0 Standard Edition

-



This article was previously published under Q125473



A pass count in a breakpoint allows you to stop on the nth time a breakpoint condition is met. The integrated debugger in Visual C++ 2.0 includes this feature, but it was not documented or exposed.

To enable this feature, use the /BPPASSC:yes switch on the MSVC command line. This enables the pass count and exposes a Pass Count control in the breakpoint dialog.

To set this type of breakpoint, fill in the fields in the breakpoint dialog as follows:

Location: .25

Expression: x==34

Pass Count: 1022

NOTE: The Pass Count is the number of times to skip, so a count of 1022 will stop execution on the 1023rd time.

Additional query words: 2.00 2.10

Keywords: kbbug kbide kbdebug kbdocerr KB125473

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.