Kbase 21795: Dr. Watson and Its Log File -- Windows 9x, ME, NT, 2000, XP
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  4/2/2002 |
|
SUMMARY:
This document briefly describes the Windows program Dr. Watson, and where to find the log file that Dr. Watson generates in case a Progress Technical Support Engineer requests this.
EXPLANATION:
Dr. Watson is a program error troubleshooting tool that traps program faults and generates a snapshot of the operating system that you can use to diagnose the fault. This tool interprets program errors in Windows-based programs and attempts to diagnose them. When Dr. Watson is running, it automatically creates a log file when a program fault occurs. The log file indicates which program created the fault, the program that the fault occurred in, and the memory address where the fault occurred. Dr. Watson cannot create a snapshot if the program does not respond (hangs).
NOTE: Dr. Watson is best used with reproducible faults. With intermittent faults, you might not be able to determine the cause of the fault.
SOLUTION:
On Windows 9x / ME / XP Home Edition / XP Professional, Dr. Watson needs to be started in order to obtain a Dr. Watson log when an unhandled exception occurs within an application. It is not started by default.
To start Dr. Watson, do one of the following:
A) Start > Run > type drwatson.exe > OK
-or-
B) Follow these steps:
1) Start > Programs > Accessories > System Tools.
2) Click System Information. On the Tools menu, click Dr. Watson.
Also, the log files are named and stored differently depending on the operating system.
-- Windows 9x and ME
By default, the Dr. Watson log file on Windows 9x and ME is stored in the directory: C:\Windows\Drwatson.
The log files have a .wlg extension such as: Watson xxx .wlg
-- Windows XP Home Edition and Professional
By default, the log file on Windows XP Home Edition and Professional is stored in the directory: C:\Documents and Settings\All Users\Appli
cation Data\Microsoft\Dr Watson
The default log file name is: drwtsn32.log
If you want to start Dr. Watson automatically when your computer starts, you can create a Dr. Watson shortcut in your Startup folder.
-- Windows NT 4.0 and Windows 2000
On Windows NT 4.0 and Windows 2000, Dr. Watson is enabled by default and will be started automatically by the system when a program has an unhandled exception.
In case you have chosen to use a third party debugger, you can also change this back so that Dr. Watson again is the default debugger by running the command: drwtsn32.exe -i
On Windows NT 4.0, the log file is by default named drwtsn32.log and is by default stored in the directory: C:\WINNT
On Windows 2000, the log file is by default stored in the directory:
C:\Documents and Settings\All Users\Documents\DrWatson
The log file is named: drwtsn32.log
References to Written Documentation:
http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;q275481&
"How to Troubleshoot Program Faults with Dr. Watson (Q275481)"
http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;Q308538&
"Description of the Dr. Watson (Drwatson.exe) Tool (Q308538)"