FIX: Debugger Sees Only One Variable of Two with Same Name (155160)
The information in this article applies to:
- The Integrated Debugger, when used with:
- Microsoft Visual C++, 32-bit Learning Edition 4.0
- Microsoft Visual C++, 32-bit Learning Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.0
- Microsoft Visual C++, 32-bit Professional Edition 4.1
- Microsoft Visual C++, 32-bit Professional Edition 4.2
This article was previously published under Q155160 SYMPTOMS
If there are two global scope variables of the same name in a project, only
one symbol appears to exist when viewed in the debugger. The correct value
is displayed for one of the symbols. All other symbols with the same name
are displayed with that same value.
RESOLUTION
The two resolutions are:
- Don't use the same name for variables of global scope in different
files.
- Link with /pdb:none.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug was corrected in Visual C++
version 5.0.
Modification Type: | Major | Last Reviewed: | 12/10/2003 |
---|
Keywords: | kbbug kbCompiler kbfix kbVC500fix KB155160 |
---|
|