Specifying the Debugger for Unhandled User Mode Exceptions

Last reviewed: September 23, 1997
Article ID: Q121434

The information in this article applies to:
  • Microsoft Windows NT operating system version 3.1
  • Microsoft Windows NT Advanced Server version 3.1
  • Microsoft Windows NT Workstation versions 3.5, 3.51, and 4.0
  • Microsoft Windows NT Server versions 3.5, 3.51, and 4.0

Windows NT allows you to specify a post mortem debugger for unhandled User mode exceptions. A general protection (GP) fault message is one of the many examples of a User mode exception. This allows you to see what went wrong in the code by examining where the program caused the fault, as well as the condition of registers, memory, and the stack.

By default, Windows NT used a 32-bit version of Dr. Watson as a post mortem debugger. The Dr. Watson log obtained from application users can be useful to the developers of the application in determining the cause of failure.

When the Win32 SDK is installed, the default post mortem debugger is changed to the kernel debugger. When Microsoft Visual C++ version 2.00 is installed, the default postmortem debugger is changed to the Visual C++ interface.

In order to change the default debugger for unhandled user mode exceptions, do the following:

WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.

  1. Start Registry Editor and locate the following Registry subkey in the HKEY_LOCAL_MACHINE subtree:

          \SOFTWARE\MICROSOFT\WINDOWS NT\CURRENTVERSION\AEDEBUG
    

  2. Select the Debugger value.

  3. From the Edit menu, choose String.

        - To use the kernel debugger, type:
    

             windbg -p %ld -e %ld
    
        - To use Visual C++, type:
    
             msvc -p %ld -e %ld
    
        - To use Dr. Watson, type:
    
             drwtsn32.exe -p %ld -e %ld
    
    

  4. Choose OK and exit Registry Editor.

The new debugger will be used the next time you log on.


Additional query words: prodnt NTAS Breakpoint 3.50 3.10 NTS NTW
Version : WinNT:3.1,3.5,3.51,4.0


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: September 23, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.