How to disable/enable dr. Watson diagnostic tool drwtsn32/how to generate dump files under Vista

Source: Internet
Author: User
To disable dr. Watson, follow these steps:

  1. ClickStart, ClickRun, InOpenEnter regedit.exe in the box, and then clickOK.
  2. Find and click the following registry key:HKEY_LOCAL_MACHINE/software/Microsoft/Windows NT/CurrentVersion/AeDebug

    Note:: Steps 3 and 4 are optional. To restore the default settings of dr. Watson, perform these two steps.

  3. ClickAeDebugItem, and then clickRegistryOn the menuExport the Registry File.
  4. Enter the name and location of the Registry file to save, and then clickSave.
  5. DeleteAeDebug.

In Windows, the Registry Key of the debug program is located in AeDebug. By default, the dr. Watson program is installed in windows and configured to run when an application error occurs (the auto value is 1 ). Default Value:

Value = auto
Type = string (reg_sz)
Data value = 1 or 0. (Default value: 1)

Value = Debugger
Type = string (reg_sz)
Data value = drwtsn32-P % LD-E % LD-G

Note:: The data value (drwtsn32-P % LD-E % LD-g) is proprietary to dr. Watson. Other debugging programs will have their own values and parameters. ///////////////////////////////////

Enable

Step 1:
Step 2:
Modify the Registry. Make it the same as the preceding registry value. Otherwise, generate the log.
Value = auto
Type = string (reg_sz)
Data value = 1 or 0. (Default value: 1)

Value = Debugger
Type = string (reg_sz)
Data value = drwtsn32-P % LD-E % LD-g where the registry is already in the Gmail mailbox .//
How to modify vc2005 as the default Debugger
Value = auto
Type = string (reg_sz)
Data value = 0

Value = Debugger
Type = string (reg_sz)
Data value = "C:/Windows/system32/vsjitdebugger.exe"-P % LD-E % LD

The Registry is already in the Gmail mailbox.

// Modify windbg as the default debugger,
1) Make sure there are AeDebug items in the registry. 2) Run windbg-I. Note that I must be in uppercase !!!!

// Modify windbg as the default debugger and automatically generate a dump file when any program crashes.
Debugger="Path/Windbg.exe "-P % LD-C ". Dump/MA/u c:/crashdump. dmp"-E % LD-G

Note:

1) Be careful with the Registry changes. execute the test.exe to verify that the Registry changes are correct. when you run test.exe the application will automatically bring up the debugger and generate a crashdump. DMP file in C:/drive

2)-C option shoshould immediately come after-P % LD

For more information about the registry, see
Http://www.codeproject.com/KB/debug/automemorydump.aspx

How to automatically generate a memory dump file:
How to automatically generate a memorp dump file?

We need to modify the registry for this.

Editing the Registry

On an x86 computer, the postmortem settings are stored in// HKEY_LOCAL_MACHINE/software/Microsoft/Windows NT/CurrentVersion/AeDebugKey.

There are two registry values that shoshould appear in these keys:

Debugger

This REG_SZ value specifies the debugger that will handle postmortem debugging.Full pathTo the debugger must be listed, unless the debugger is located in a directory that is in the default path.

Auto

This REG_SZ value is always either 0 or 1. If auto is set to 0, a message box will be displayed prior to postmortem debugging.

When an unhandled application error occurs, Windows checks to see if the debugger and auto registry values exist.

If the auto value is 0, a message box will appear.

In Windows NT and Windows 2000, the message box will have one of the following formats:

  • If the debugger value contains the name of a valid debugger or dr. watson, the message box will have two buttons: OK and cancel. if the OK button is pressed, the application will be terminated. if the cancel button is pressed, the tool specified in the debugger value will be started.
  • If the debugger value is empty, the message box will have only an OK button and no debugger will start.

 

How to generate dump in Vista

Do not include dr. Watson in Windows Vista. Follow these steps. Dr. Watson is the default debugging program in earlier Windows operating systems. The problem report and solution will be dr. Watson. Follow these steps to replace the control. You can configure problem reports and solutions in the control panel. However, you cannot use problem reports and solutions to create a complete user mode dump file.

Back to the top how to create a complete user mode dump file in Windows Vista

ImportantThis section, method, or task contains steps that tell you how to modify the registry. However, if the registry is modified incorrectly, serious problems may occur. Therefore, be sure to perform these steps carefully. Before you add a secret to the Registry, back up and modify it. Then, you can restore the Registry when a problem occurs. For details about how to back up and restore the registry, click the following article number to view the corresponding information in the Microsoft Knowledge Base:

322756 (http://support.microsoft.com/kb/322756/) how to back up and restore in Windows Registry
  1. And then install the Windows debugging tool. To use Windows debugging tools, visit the following Microsoft Web site:

    Http://www.microsoft.com/whdc/devtools/debugging/default.mspx (http://www.microsoft.com/whdc/devtools/debugging/default.mspx)
  2. ClickStartAnd then clickRun.
  3. Copy, And Then paste (or type) the following command inOpenBox and press Enter: regedit
  4. Find and click the following registry subkeys:Hkey _ local _ machine/software/Microsoft/Windows NT/CurrentVersion/AeDebug
  5. InEditPointNewAnd then clickString Value.
  6. Type the debugger and press Enter.
  7. Right-clickDebuggerAnd then clickModify.
  8. Edit string valueIn the dialog box, type C:/debuggers/ntsd-P % LD-c ". Dump/f/u c:/tmp/mydump. dmp; q", and then clickOK. In this example, the Windows debugging tool directory is C:/debuggers.
  9. InEditPointNewAnd then clickString Value.
  10. Enter automatic, and then press Enter.
  11. Right-clickAutomaticAnd then clickModify.
  12. Edit string valueIn the dialog box, type 1, and then clickOK.
  13. Exit Registry Editor.

If the application crashes, the complete user mode dump file is created in the C:/tmp directory specified in Step 8.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.