置Watson博士以静默方式转储崩溃的进程而不会弹出任何错误对话

置Watson博士以静默方式转储崩溃的进程而不会弹出任何错误对话

本文介绍了如何配置Watson博士以静默方式转储崩溃的进程而不会弹出任何错误对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以配置Watson博士以不弹出任何错误对话框的方式静默转储崩溃的进程吗?

I would like to know if it is possible to configure Dr. Watson to silently dump a crashing process without popping up any error dialog box?

我们需要这样做,因为我对某些应用程序运行了一组集成测试.我们不希望错误消息框阻止测试.我们需要一种使Watson博士保持沉默的方法,但是当进程崩溃时仍会转储图像.

We need this because I run a set of integration tests with some applications. We don't want the tests to be blocked by an error message box. We need a way to make Dr. Watson silent but still dump the image when the process crashes.

最好

推荐答案

Dr.Watson本身默认情况下是静音的.无论如何,如果要控制Dr.Watson的工作方式,请在命令提示符下输入"drwtsn32.exe"以显示该软件的配置对话框.另外,要将Dr.Watson安装为默认调试器,请使用"drwtsn32.exe -i".

Dr.Watson itself is silent by default. anyway, if you want to control the way Dr.Watson works, enter "drwtsn32.exe" at a command prompt to display the configuration dialog for this software. also, to install Dr.Watson as the default debugger, use "drwtsn32.exe -i".

默认调试器的设置存储在注册表中的HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug. Auto值应设置为1,以使系统自动启动默认调试器.在您的情况下,必须将此值设置为1.

the settings for the default debugger is stored in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug. the Auto value should be set to 1 for the system to automatically launch the default debugger. in your case, it is mandatory to set this value to 1.

一旦以上所有设置完成,您就可以指示Windows停止显示"X has encountered a problem and needs to close"对话框.在Windows XP上,可以通过 System Control Panel 标签的 Advanced 选项卡上的 Error reporting 按钮进行控制.该对话框允许控制发生错误时系统的反应. (在其他Windows版本上,应该类似,在Google上搜索错误报告" )

once all the above things are setup, you can instruct Windows to stop displaying the "X has encountered a problem and needs to close" dialog. on Windows XP, this is controlled in the System Control Panel, on the Advanced tab, the Error reporting button on the bottom of the dialog allows to control how the system reacts when an error occurs. (on other versions of Windows, there should be something similar, search for "Error reporting" on Google)

在将调试器设置为自动,正确配置Dr.Watson并禁用错误报告的情况下,当系统崩溃时,系统不应显示任何对话框.

with the debugger set to auto, Dr.Watson properly configured and error reporting disabled, the system should not show any dialog when a crash occurs.

这篇关于如何配置Watson博士以静默方式转储崩溃的进程而不会弹出任何错误对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-27 06:42