LKBEN10856: Howto disable Dr. Watson on a terminal server (citrix) system


Symptom

You want to disable Dr. Watson on your system after you have found it usefull for debugging

Cause

none

Solution

Dr. Watson is the application debugger that automatically starts if errors occur in applications and if these errors cannot be handled by a default procedure. For instance, Dr. Watson is often launched when an application accesses memory improperly. This requires exception handling; and if such an exception occurs, Dr. Watson is launched and saves all relevant data. However, this type of behavior is not desirable on terminal servers, except for targeted error analyses.

For this reason, Dr. Watson should be disabled on production systems by deleting the HKLM\Software\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger registry key and the drwtsn32 –P %ld –e %ld –g value. By deleting this key, Dr. Watson is disabled. Dr. Watson can also be deactivated by deleting the HKLM\Software\Microsoft\DrWatson key.

Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!

About the Author

Author: Wim Peeters - Keskon GmbH & Co. KG

Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.