PRB: Error "Could not load debuggee. File not found (2)"

Last reviewed: July 18, 1997
Article ID: Q125616
1.00 1.50 1.51 1.52 WINDOWS kbtool kbprb

The information in this article applies to:

  • The integrated debugger included with: Microsoft Visual C++ for Windows, versions 1.0, 1.5, 1.51, and 1.52

SYMPTOMS

When you load an application into the debugger, the following error message appears:

   Could not load debuggee. File not found (2).

CAUSE

The error message occurs when some file(s) needed for the application to be debugged (debuggee) can not be found at load time. For example, if the application requires a DLL and the DLL is not in your current working directory or any of the directories on your PATH, the debugger displays the error message.

It is actually Windows that fails to load the application on behalf of the debugger. The (2) is the return code from LoadModule().

RESOLUTION

To allow the debugger to find the files, either:

  • Place the files in your current working directory

    -or-

  • Add the directory containing the files to your PATH.


Additional reference words: 1.00 1.50 1.51 1.52
KBCategory: kbtool kbprb
KBSubcategory: WBDebug
Keywords : kb16bitonly WBDebug kbprb kbtool
Version : 1.00 1.50 1.51 1.52
Platform : WINDOWS


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.

Last reviewed: July 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.