Automatic Operating System debugging has been disabled
[This topic is intended to address a specific issue called out by the Exchange Server Analyzer Tool. You should apply it only to systems that have had the Exchange Server Analyzer Tool run against them and are experiencing that specific issue. The Exchange Server Analyzer Tool, available as a free download, remotely collects configuration data from each server in the topology and automatically analyzes the data. The resulting report details important configuration issues, potential problems, and nondefault product settings. By following these recommendations, you can achieve better performance, scalability, reliability, and uptime. For more information about the tool or to download the latest versions, see "Microsoft Exchange Analyzers" at https://go.microsoft.com/fwlink/?linkid=34707.]
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:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AeDebug\Auto
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.
To register Dr. Watson as the default debugger from the command prompt
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.
To register Dr. Watson as the default debugger from the user interface
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" (https://go.microsoft.com/fwlink/?linkid=3052&kbid=188296).