Automatic Operating System debugging has been disabled
Topic Last Modified: 2005-11-18
The Microsoft® Exchange Server Analyzer Tool reads the following registry entry to determine whether operating system debugging has been disabled:
If the Exchange Server Analyzer finds the value for Auto set to 0, a warning is displayed.
By default, an application debugger named Dr. Watson is installed with Microsoft Windows® 2000 Server and Windows Server™ 2003 operating systems. A debugger is a program that helps detect, locate, and correct errors in another program by enabling a programmer to step through the program, examine the data, and monitor conditions such as the values of variables.
The default options are set the first time Dr. Watson runs, which can be either when a program error occurs or when you start Dr. Watson yourself.
When an application error occurs, Windows searches for a program error handler. A program error handler deals with errors as they occur during the running of a program. If Windows does not find a program error handler, it verifies that the program is not currently being debugged and considers the error to be unhandled. Windows then processes unhandled errors by looking in the registry for a program error debugger.
The behavior of Windows depends on the settings of two registry values under: HKLM\Software\Microsoft\Windows NT\CurrentVersion\AeDebug
The entries are named Debugger and Auto. The value for the Debugger entry specifies the command for the debugger that will be used to analyze program errors. If the value for the Debugger entry is found, Windows checks to see if the value for the Auto entry is set to 0 or 1:
If the value for Auto entry is set to 0, Windows generates a message box that notifies you that a program error has occurred. If the value for the Debugger entry specifies the command for a valid debugger, the message box will display two buttons: OK and Cancel. If you click OK, the program is stopped. If you click Cancel, the specified debugger is started. If the value for the Debugger entry is empty, the message box will display only OK, and no debugger will start.
If the value for the Auto entry is set to 1 and the value for the Debugger entry specifies the command for a valid debugger, the system automatically starts the debugger and does not generate a message box.
When Windows is installed, the value for the Auto entry is set by default to 1 and the value for the Debugger entry specifies the command to start Dr. Watson (drwtsn32 -p %ld -e %ld -g). This means that when a program error occurs, Dr. Watson automatically diagnoses the error and logs the appropriate diagnostic information.
It is recommended that a program error debugger be used on Exchange Server computers as a best practice. If you have been using a program other than Dr. Watson as your default debugger, and you want to use Dr. Watson instead, go to the command prompt and type the command drwtsn32 -i to start Dr. Watson. Typing -i causes the required changes to be made to the registry.
Open a Command Prompt window.
Run the following command: drwtsn32 -i
You will receive a message that says "Dr. Watson has been installed as the default application debugger." Click OK to acknowledge this message.
Click Start, click Run, type drwtsn32, and then press ENTER. The Dr. Watson for Windows user interface will appear.
Select the Create Crash Dump File check box.
Click OK to save the changes and close the Dr. Watson for Windows user interface.
For more information about Dr. Watson for Windows, see the Dr. Watson Help file by pressing F1 in the Dr. Watson user interface.
If you plan on using a program error debugger other than Dr. Watson, you can disable Dr. Watson using the procedure in the Microsoft Knowledge Base article 188296, "How to Disable Dr. Watson for Windows" (http://go.microsoft.com/fwlink/?linkid=3052&kbid=188296).