PRB: Conditional Breakpoints Cannot Always Be Set (78853)
The information in this article applies to:
- The Integrated Debugger, when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.0
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++ for Windows, 16-bit edition 1.51
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- Microsoft Visual C++, 32-bit Editions 1.0
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 5.0
This article was previously published under Q78853 SYMPTOMS
In the Visual Workbench debugger, an attempt to set conditional breakpoints
may fail. A message box may appear containing a message such as
The breakpoint <breakpoint_name> cannot be set.
Or, as with the Developer Studio debugger included with Visual C++ 4.0 and
later, the conditional breakpoint may appear to be set, but when the debug
session is initiated, a message box may appear containing the following
text:
One or more of the breakpoints cannot be set and have been
disabled. Execution will stop at the beginning of the program.
CAUSE
This problem occurs only when you attempt to set the breakpoint while the
specified variable is out of scope.
RESOLUTION
There are two methods to address this situation: - Trace into the program until the variable is in scope, then set
the breakpoint.
- Specify the context of the variable when you set the breakpoint.
For example, specify a breakpoint on "{main}a" instead of on "a".
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | kbBug kbDebug kbide kbprb KB78853 |
---|
|