Microsoft KB Archive/138081

= How To Load an Executable File into the Visual C++ Debugger =

Article ID: 138081

Article Last Modified on 7/1/2004

-

APPLIES TO

 The Integrated Debugger, when used with:  Microsoft Visual C++ 4.0 Standard Edition

 Microsoft Visual C++ 5.0 Enterprise Edition

 Microsoft Visual C++ 5.0 Professional Edition

 Microsoft Visual C++ 6.0 Enterprise Edition</li></ul>

 Microsoft Visual C++ 6.0 Professional Edition</li></ul>

 Microsoft Visual C++ 6.0 Standard Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q138081

<div class="summary_section">

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.

<div class="moreinformation_section">

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: <pre class="fixed_text">  MSDEV Test.exe

Keywords: kbhowto KB138081

-

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

© Microsoft Corporation. All rights reserved.