Kbase P12834: What is Dr. Watson and its log file?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  8/31/2007 |
|
Status: Verified
GOAL:
What is Dr. Watson and its log file?
GOAL:
How to enable Dr. Watson?
GOAL:
How to enable Dr Watson?
GOAL:
How to start Dr. Watson
GOAL:
How to start Dr Watson?
GOAL:
Where to find the Dr. Watson log file in Windows ?
FACT(s) (Environment):
Windows NT 32 Intel/Windows 2000
Windows 95
Windows 98
Windows ME
Windows XP
Windows 2000
FIX:
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).
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\Application 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.
To identify or change where the log files are located:
- Run Drwtsn32.exe from a command prompt
- Check the "Log File Path" fill-in
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
Note: When using a third party debugger, Dr. Watson will fail to generate log files.
To avoid this, ensure Dr. Watson is the default debugger by running the command: drwtsn32.exe -i