Q138081: HOWTO: Load an Executable File into the Visual C++ Debugger
Article: Q138081
Product(s): Microsoft C Compiler
Version(s): WINNT:4.0,5.0;
Operating System(s):
Keyword(s): kbVC400 kbVC500 kbVC600
Last Modified: 31-JUL-2001
-------------------------------------------------------------------------------
The information in this article applies to:
- The Integrated Debugger, included with:
- Microsoft Visual C++, 32-bit Editions, version 4.0
- Microsoft Visual C++, 32-bit Enterprise Edition, version 5.0
- Microsoft Visual C++, 32-bit Professional Edition, version 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition, version 6.0
- Microsoft Visual C++, 32-bit Professional Edition, version 6.0
- Microsoft Visual C++, 32-bit Learning Edition, version 6.0
-------------------------------------------------------------------------------
SUMMARY
=======
If you have the Visual C++ developer studio (Msdev.exe) running, you can load an
executable file for the purpose of debugging without loading the associated
workspace.
MORE INFORMATION
================
To load the .exe file, click Open Workspace on the File menu, and enter the name
of the executable including the .exe suffix. The .pdb file must either be at the
location specified by the executable file or must be in the same directory as
the executable file. Source files can be loaded by clicking Open on the File
menu. When you finish debugging, you will be asked if you want to save the
workspace information. This way the files you've loaded will be reloaded in
future debugging sessions.
As in versions 2.0, 2.1, and 2.2, versions 4.0 and 5.0 executables can also be
debugged if loaded as a command line option as in this example:
MSDEV Test.exe
Additional query words:
======================================================================
Keywords : kbVC400 kbVC500 kbVC600
Technology : kbVCsearch kbAudDeveloper kbIntegratedDebugger
Version : WINNT:4.0,5.0;
Issue type : kbhowto
=============================================================================
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.