Wednesday, December 26, 2007

Disabling Dr. Watson

Dr. Watson can be a little annoying at times, but there's solution. You can turn it off. The behaviour of Dr Watson is controlled by:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AeDebug

The contents of the REG_SZ value, Auto, controls how Dr Watson operates:
Displays a message box informing the user of an application error.
(default) Causes the debugger to start automatically.

You can disable Dr Watson completely by deleting the AeDebug key. To re-enable it, type:

drwtsn32 -i

at the command prompt.