BUG: Line Number Information Incorrect with /DEBUGTYPE:both (122266)
The information in this article applies to:
- The Linker (LINK.EXE), when used with:
- Microsoft Visual C++, 32-bit Professional Edition 2.0
This article was previously published under Q122266 SYMPTOMS
Microsoft Format (CV) and COFF debugging formats can be used at the same
time. To get both formats, use the /DEBUGTYPE:both linker switch or in the
development environment, go to the Project menu, select Settings, choose
the Link tab, choose the Debug category, and select Both Formats.
When both Microsoft Format (CV) and COFF debugging formats are used in the
same application, incorrect line number information will be generated for
functions that are not in the main .CPP file. Usually these are inline
functions, included in header (.H) or inline (.INL) files by using #include.
Incorrect line number debugging information will show up when stepping
through the program in the integrated debugger. As you step through the
functions included in other files, the debugger will continue to show the
current file.
RESOLUTION
You can work around this problem by including either Microsoft Format (CV)
or COFF debugging formats, but not both, in the same executable. The
integrated debugger uses Microsoft Format (CV), so it is the preferred
format.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. We are researching this problem
and will post new information here in the Microsoft Knowledge Base as it
becomes available.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | KB122266 |
---|
|