From Wikipedia, the free encyclopedia
Dr. Watson
Dr. Watson invoked on Windows 2000 |
|
Developer(s) | Microsoft |
---|---|
Operating system | Microsoft Windows |
Type | Debugger |
License | Proprietary commercial software |
Dr. Watson is an application debugger included with the Microsoft Windows operating system. It may be named drwatson.exe
, drwtsn32.exe
or dwwin.exe
, depending on the version of Windows.
The tool is named after Doctor Watson of Sherlock Holmes fame, the idea being that it would collect error information (symptoms) following a program crash. The use of the word «Watson» has since been expanded to include general end-user feedback services.[1] The original name of this diagnostic tool was «Sherlock».[2]
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 (usually 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».[3]
Beginning with Windows XP, Dr. Watson (drwtsn32.exe)[4] was extended with (dwwin.exe) «Problem Reports and Solutions».[5]
- Windows Error Reporting
- ProcDump
- ^ Chen, Raymond (10 August 2005). «Why is Windows Error Reporting Nicknamed «Dr. Watson»?». Archived from the original on 1 November 2006. Retrieved 21 May 2006.
- ^ Chen, Raymond (14 November 2005). «What was Dr. Watson’s Original Name?». Retrieved 8 October 2020.
- ^ Grehan, Rick (October 1994). «Watcom C/C++ Gets a New Face». BYTE. Archived from the original on 19 October 1996. Retrieved 28 September 2011.
- ^ «Description of the Dr. Watson for Windows (Drwtsn32.exe) Tool». Microsoft. Archived from the original on 23 January 2013.
- ^ «Error Reporting Policies and Advanced Features». Microsoft. Archived from the original (DOC) on 29 June 2011. Retrieved 28 September 2011.
- Kirk Glerum and Mike Hollinshead — Watson (what happens when your system crashes?) [dead link]
- How to disable Dr. Watson for Windows [dead link]
This article describes the Dr. Watson for Windows program error debugger tool included in Windows XP.
Dr. Watson for Windows is a program error debugger that gathers information about your computer when an error (or user-mode fault) occurs with a program. Technical support groups can use the information that Dr. Watson obtains and logs to diagnose a program error. When an error is detected, Dr. Watson creates a text file (Drwtsn32.log) that can be delivered to support personnel by the method they prefer. You also have the option of creating a crash dump file, which is a binary file that a programmer can load into a debugger.
Note Windows XP also provides an Error Reporting service that monitors your computer for both user-mode and kernel-mode faults («stop» error messages or error messages that are displayed on a blue screen, as well as improper shutdown events) that affect both the operating system and any programs. This service allows you to send error reports to Microsoft when an error occurs. Because all error reports are confidential and anonymous, Microsoft Support Professionals do not have access to any error report that you have sent to Microsoft over the Internet using the Error Reporting service. As a result, you may need to send a Dr. Watson for Windows log file to a support professional. For additional information about Error Reporting Service in Windows XP, click the article number below
to view the article in the Microsoft Knowledge Base:
310414
(http://support.microsoft.com/kb/310414/EN-US/
)
HOW TO: Configure and Use Error Reporting in Windows XP
If a program error occurs, Dr. Watson for Windows starts automatically. To configure Dr. Watson, follow these steps:
- Click Start, and then click Run.
- Type drwtsn32, and then click OK.
By default, the log file created by Dr. Watson is named Drwtsn32.log and is saved in the following location:
drive:\Documents and Settings\All Users.WINNT\Application Data\Microsoft\Dr Watson
Note Drwatson.exe is an older program error debugger that was included with earlier versions of Windows NT. Microsoft recommends that you use Drwtsn32.exe instead of Drwatson.exe in Windows XP.
Article ID: 308538 — Last Review: October 29, 2007 — Revision: 1.4
APPLIES TO
- Microsoft Windows XP Home Edition
- Microsoft Windows XP Professional
Keywords:
|
kbproductlink kbinfo KB308538 |
Back to the top | Give Feedback
Translation |
Do not translate this page into other languages. It is either low priority, too specific or incomplete. |
e |
Previous to BugTrap, which is currently integrated into Shareaza to submit crashes to our development team, DrWatson, a Microsoft utility was used to submit crash reports.
What is Dr Watson?
Dr Watson is a Windows application that helps track problems in software.
If Dr Watson is running when an application crashes, it will make logs which can help identify what caused the problem, and allow it to be prevented in the future.
How to enable Dr Watson…
…on Windows XP
- Go to Start, click Run
- Type drwtsn32 -i
An alert will appear and show you’ve enabled it. Next you must configure it.
Under Windows XP, the logs will be saved in C:\Documents and Settings\All Users\Application Data\Microsoft\Dr Watson
… on Windows 2000
Open the command prompt and type drwtsn32 -i (or from the «Run…» command in the Windows start menu).
By default Windows 2000 saves the logs in C:\Documents and Settings\AllUsers\Documents\DrWatson
…under Windows 9x
The Dr Watson executable is in C:\WINDOWS. Run it before starting Shareaza.
Logs will be saved in C:\WINDOWS\DRWATSON, and you only need to send in the most recent log. (You can delete all the logs after you’ve finished)
Configuring Dr Watson (Win2k & XP)
- Go to Start, click Run
- Type drwtsn32 (Please note: do not include the -i)
- Configure the settings as shown below:
- Number of Errors To Save: 2
- Crash Dump Type: Mini
- Only check the following options:
- Dump All Thread Contexts
- Append to Existing Log File
- Create Crash Dump File
Click OK
How do I use Dr Watson?
Dr Watson is now installed and configured. Run Dr Watson before starting Shareaza. If Shareaza crashes, Dr Watson will create a log file and a dump file containing information on the crash.
Shareaza has crashed. How do I report?
If you see a dialog asking you to report the problem to Microsoft, click on Don’t Send.
Dr Watson has now created a Dump file and a Log file in the directory specified when you configured it.
You just need to find the most recent log entry, zip it together with the dump file, and post it on the Bugs and Beta Testing Forum with a description of what you were doing when the crash happened.
Also be sure to include your system specifications, operating system and connection type.
Navigation: ShareazaWiki > Developers > DrWatson
08 Dec 2009 | Автор: dd |
Иногда возникает необходимость узнать, что же происходит в мозгах у системы, при том, что в системные логи операционка не пишет никакой информации. Для этого нужно воспользоваться встроенным в систему дебаггером Dr.Watson. Его расположение по умолчанию %SystemRoot%\system32\drwtsn32.exe
1. Для начала нужно зарегистрировать Dr Watson как дебаггер по умолчанию, для этого говорим
Пуск -> Выполнить (или “майкрософтовское окошко” + R) и запустить drwtsn32 -i
2. Теперь настроим Dr Watson
Пуск -> Выполнить и drwtsn32
3. Изменяем в соответствии
Файл журнала = путь по которому будет находится лог файл (Drwtsn32.log)
Аварийная копия памяти = путь по которому ляжет дамп памяти (user.dmp)
Тип аварийного дампа = Полный
Параметры = включить все радиокнопки (можно не включать Визуальное и Звуковое оповещения)
4. Когда какое либо приложение, которое и нужно отследить, вылетит в очередной раз дамп памяти создатся в том файле который мы определили в 3 пункте, после чего мы его можем открыть и начать ковырять, на предмет поиска непонятностей.
Отключить Dr.Watson можно следующим образом:
- Вызвать редактор реестра: Пуск -> Выполнить, выполнить команду regedit
- Зайти в следующую ветвь реестра:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\
- Сделать резервную копию имеющейся ветки, чтобы была возможность откатиться: щелкаем в раздел AeDebug, затем правой клавишей мышки вызываем меню, там пункт Экспортировать, выбираем куда и Сохранить.
- После этого удаляем из системного реестра раздел AeDebug.
В удаленном разделе системного реестра AeDebug находятся конфигурации параметров которые использует системный отладчик Windows Dr. Watson. Этот дебаггер назначается по дефолту и используется при сбоях в работе приложений (в том случае если параметр Auto установлен в значение 1). Дефолтные настройки для Dr. Watson:
Параметр = Auto
Тип = String (REG_SZ)
Значение = 1 или 0. (По умолчанию “1″)
Параметр = Debugger
Тип = String (REG_SZ)
Значение = drwtsn32 -p %ld -e %ld -g
Rating: 4.1/10 (60 votes cast)
Rating: -3 (from 3 votes)
Отладка приложений с помощью Dr.Watson, 4.1 out of 10 based on 60 ratings
Теги: Dr.Watson, отладка
Материал из РУВИКИ — свободной энциклопедии
Dr. Watson — отладчик приложений в операционных системах Microsoft Windows. Он обычно носит имя drwatson.exe
, drwtsn32.exe
или dwwin.exe
, в зависимости от версии Windows. Отладчик получил своё название от доктора Джона Ватсона (John Watson) из произведений Артура Конан Дойля о Шерлоке Холмсе, так как цель отладчика — сбор симптомов, сопутствующих ошибке. Изначально название этого диагностического инструмента было «Sherlock»[1]. Использование слова «Watson» позднее было расширено и включило в себя сбор и отправку отзывов от пользователей программного обеспечения[2].
Информация (отчёт об ошибке), собранная Dr. Watson — это техническая информация, нужная разработчикам ПО, чтобы диагностировать причину ошибки. Текстовый файл (Drwtsn32.log) создается в момент, когда случилась ошибка, и может быть доставлен персоналу, ответственному за поддержку ПО предпочтительным им способом. Также может быть создан файл-минидамп — бинарный файл, который может быть открыт и проанализирован с помощью программы-отладчика. Dr. Watson может определить точное место ошибки в коде приложения, если имеются необходимые символьные файлы (symbol files) и настроены пути для поиска этих файлов.
В момент, когда в приложении Windows происходит критическая ошибка, система производит поиск программного обработчика ошибки (англ. error handler). Программный обработчик ошибки — это обычно зарегистрированная в системе функция, которая вызывается, когда в программе возникает исключение. Если система не обнаруживает зарегистрированный обработчик ошибки, система удостоверяется, что программа в данный момент не находится в режиме отладки, и ошибка считается необработанной. Система затем ищет в реестре Windows информацию об установленных программах-отладчиках ошибок, где по умолчанию записан Dr. Watson. Сторонний отладчик также может быть использован вместо Dr. Watson. Например, компилятор языка С Watcom включает в себя похожий инструмент обработки ошибок, называемый «Dr. Watcom»[3].
Начиная с Windows Vista, название Dr. Watson было заменено на «Problem Reports and Solutions»[4].
Отчёт об ошибке отправляется с помощью службы Windows Error Reporting на специальный сервер Microsoft, где все отчёты сортируются и хранятся в централизованной базе данных. Для того, чтобы получить доступ к отчётам для конкретного приложения, разработчику нужно зарегистрироваться на сервере Microsoft, после чего он получает возможность анализировать отчёты об ошибках.
Google Breakpad[5] является многоплатформенной библиотекой с открытым исходным кодом для обработки исключительных ситуаций и отправки отчёта об ошибке. Он используется в популярном браузере Firefox для доставки отчётов об ошибках от пользователей.
Библиотека CrashRpt[6] также предназначена для сбора и отправки сообщений об ошибках на стороне пользователя. Она является открытой библиотекой, но, в отличие от Breakpad предназначена только для платформы Windows.
- Windows Error Reporting
- Баг
- Обработка исключений
- Отчёт об ошибке
- ↑ What was Dr. Watson’s original name? (недоступная ссылка — история). Архивировано 5 апреля 2012 года.
- ↑ Why is Windows Error Reporting nicknamed «Dr. Watson»? (недоступная ссылка — история). Дата обращения: 21 мая 2006. Архивировано 2 марта 2012 года.
- ↑ Rick Grehan. Watcom C/C++ Gets a New Face, BYTE (October 1994). Архивировано 20 ноября 2008 года.
- ↑ Windows Vista Help: What happened to Dr. Watson? (недоступная ссылка — история). Архивировано 5 апреля 2012 года.
- ↑ Breakpad (недоступная ссылка — история). Google. Дата обращения: 11 августа 2009. Архивировано 3 февраля 2012 года.
- ↑ CrashRpt (недоступная ссылка — история). Архивировано 3 февраля 2012 года.
- How to disable Dr. Watson for Windows
- Dr. Fun on Dr. Watson, 27 June 2000