Jump to content

Dr. Watson (debugger): Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Tidy up
Line 1: Line 1:
[[Image:DoctorWatsonDebugger.png|thumb|right|Dr. Watson invoked on [[Windows XP]].]]
[[Image:DoctorWatsonDebugger.png|thumb|right|Dr. Watson invoked on [[Windows XP]].]]


In [[Microsoft Windows]], '''Dr. Watson'''{{ref|Dr.}} is an application [[debugger]] included with the [[operating system]]. It is usually named <code>drwatson.exe</code>, <code>drwtsn32.exe</code> or <code>dwwin.exe</code> depending on the version of Windows. It is named after [[John Watson (Sherlock Holmes)|Doctor Watson]] of [[Sherlock Holmes]] fame, with the idea being that it would collect error information ([[symptom]]s) following the problem (affliction). The use of the term "Watson" has since, by extension, been expanded.<ref>{{cite web|url=http://blogs.msdn.com/oldnewthing/archive/2005/08/10/449866.aspx|title=Why is Windows Error Reporting nicknamed "Dr. Watson"?|accessdate=2006-05-21}}</ref>
In [[Microsoft Windows]], '''Dr. Watson'''{{ref|Dr.}} is an application [[debugger]] included with the [[operating system]]. It is usually named <code>drwatson.exe</code>, <code>drwtsn32.exe</code> or <code>dwwin.exe</code> depending on the version of Windows. It is named after [[John Watson (Sherlock Holmes)|Doctor Watson]] of [[Sherlock Holmes]] fame, with the idea being that it would collect error information ([[symptom]]s) following the problem. The use of the word "Watson" has since been expanded to include general end user feedback services.<ref>{{cite web|url=http://blogs.msdn.com/oldnewthing/archive/2005/08/10/449866.aspx|title=Why is Windows Error Reporting nicknamed "Dr. Watson"?|accessdate=2006-05-21}}</ref>


The information obtained and logged by Dr. Watson is the information needed by technical support personnel to diagnose a program error for a computer running Windows. A text file (''Drwtsn32.log'') is created whenever an error is detected, and can be delivered to support personnel by the method they prefer. A crash dump file can also be created, which is a binary file that a programmer can load into a debugger. Dr. Watson can be made to generate more exacting information for debugging purposes if the appropriate ''symbol files'' are installed and the symbol search path ([[environment variable]]) is set.
The information obtained and logged by Dr. Watson is the information needed by technical support personnel to diagnose a program error for a computer running Windows. A text file (''Drwtsn32.log'') is created whenever an error is detected, and can be delivered to support personnel by the method they prefer. A crash dump file can also be created, which is a binary file that a programmer can load into a debugger. Dr. Watson can be made to generate more exacting information for debugging purposes if the appropriate ''symbol files'' are installed and the symbol search path ([[environment variable]]) is set.

Revision as of 10:56, 20 May 2008

File:DoctorWatsonDebugger.png
Dr. Watson invoked on Windows XP.

In Microsoft Windows, Dr. Watson[1] is an application debugger included with the operating system. It is usually named drwatson.exe, drwtsn32.exe or dwwin.exe depending on the version of Windows. It is named after Doctor Watson of Sherlock Holmes fame, with the idea being that it would collect error information (symptoms) following the problem. The use of the word "Watson" has since been expanded to include general end user feedback services.[1]

The information obtained and logged by Dr. Watson is the information needed by technical support personnel to diagnose a program error for a computer running Windows. A text file (Drwtsn32.log) is created whenever an error is detected, and can be delivered to support personnel by the method they prefer. A crash dump file can also be created, which is a binary file that a programmer can load into a debugger. Dr. Watson can be made to generate more exacting information for debugging purposes if the appropriate symbol files are installed and the symbol search path (environment variable) is set.

When a program error occurs in Windows, the system searches for a program error handler. A program error handler deals with errors as they arise during the running of a program. If the system does not find a program error handler, the system verifies that the program is not currently being debugged and considers the error to be unhandled. The system then processes unhandled errors by looking in the registry for a program error debugger for which Dr. Watson is the default. A third-party debugger can also be used in place of Dr. Watson. The Watcom C compiler includes a similar crash-analysis tool named "Dr. Watcom".[2]

Notes

  • ^ — Nearly all official Microsoft documents and the application itself give its name as "Dr. Watson".
  • ^ — The original name of this dihistic tool was "Sherlock"[3]

See also

References

  1. ^ "Why is Windows Error Reporting nicknamed "Dr. Watson"?". Retrieved 2006-05-21.
  2. ^ Rick Grehan (October 1994). "Watcom C/C++ Gets a New Face". BYTE.
  3. ^ "What was Dr. Watson's original name?".