Microsoft KB Archive/191679

= FIX: Wrong Line Number Information Debugging STL =

PSS ID Number: 191679

Article Last Modified on 10/2/2003

-

The information in this article applies to:


 * The Integrated Debugger

-



This article was previously published under Q191679



SYMPTOMS
When trying to debug a program that uses STL template classes, the debugger may point to the wrong line in the source file.



CAUSE
The Compiler is generating incorrect line-number information.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Visual C++, version 6.0.



Sample Code
//test.cpp #include int main {  int a, b ; a=10; std::vector v; //Incorrect debug line-number info for this line. b=5; return 0; }  //end test.cpp


 * 1) Create a Console Application project and add test.cpp to the project.
 * 2) Make a debug build of the project.
 * 3) Start stepping over each line of code by using F10.

RESULTS: After the "a=10;" line, the cursor points to the last line of test.cpp.

Pressing F10 again takes the cursor back to "b=5;" line.

Additional query words: kbDSupport

Keywords: kbBug kbDebug kbfix kbVC600fix KB191679

Technology: kbAudDeveloper kbIntegratedDebugger kbVCsearch

-

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

© Microsoft Corporation. All rights reserved.