KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q51764: Debugging DLLs with Codeview

Article: Q51764
Product(s): See article
Version(s): 2.20 2.30
Operating System(s): OS/2
Keyword(s): ENDUSER | | mspl13_basic
Last Modified: 18-DEC-1989

To debug most DLLs (Dynamic Link Libraries) in CodeView, CVP
(protected mode CodeView) Version 2.20 or later is required. For DLLs
loaded via DosLoadModule(), CVP Version 2.30 or later is required.

Invoke CodeView with the /L switch as follows:

   cvp /L dll1name /L dll2name main.exe

Make sure that each DLL you want to trace into is specified by the /L
option.

CodeView cannot debug DLLs that have either IOPL or EXECUTEONLY
specified with the CODE directive in the associated definition (.DEF)
file. For DLLs that require these controls, the Kernel Debugger
supplied with the SDK is required.

Note: With CVP 2.30, pathnames cannot be specified for DLLs;
therefore, the DLL must reside in the current directory. For more
information, query on the following:

    CODEVIEW DLL LIBPATH

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.