禁用WerFault.exe/“应用程序已停止工作".崩溃对话框 [英] Disable WerFault.exe/"Application Has Stopped Working" crash dialog

查看:222
本文介绍了禁用WerFault.exe/“应用程序已停止工作".崩溃对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个开发工具,它在启动时崩溃,我看不到它抛出的任何错误消息,也没有机会对其进行调试,因为它显示了崩溃程序的Windows 7对话框,其中显示"Windows正在寻找解决方案..."

I have a development tool that's crashing on launch, and I don't get to see any error messages it throws, or get a chance to debug it, because it shows the Windows 7 dialog for crashed programs, where it says "Windows is checking for a solution..."

我想让我的老派大屁股断言对话框,并带有一个大的"DEBUG"按钮.我已经在Visual Studio的选项和设置中完全启用了JIT,所以我不确定为什么没有得到该选项.

I want to have my old school big ass assert dialog box back, with a big "DEBUG" button. I have JIT completely enabled in Visual Studio's options and settings, so I'm not sure why I'm not getting the option.

推荐答案

约翰·克里兹托夫(John Krzysztof John)的答案.

通过注册表关闭错误对话框

Turn Off The Error Dialog Via The Registry

尽管不建议普通用户手动编辑注册表,但有时没有选择的余地,因为在您的Windows版本中可能无法使用诸如组策略编辑器之类的东西,或者组策略方法本身不起作用.在Windows Vista及更高版本上可以使用.

Although editing the registry manually is not recommended for average users, sometimes there isn’t a choice because something like the Group policy Editor might not be available in your version of Windows or the group policy method itself doesn’t work. This works on Windows Vista and above.

  1. 通过在开始"搜索框或"Win + R运行"对话框中键入regedit来打开注册表编辑器.

  1. Open the Registry Editor by typing regedit into the Start search box or the Win+R Run dialog.

导航至以下注册表项:

HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ Windows错误报告

HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting

  1. 双击右侧的DontShowUI条目并将其值更改为1,然后关闭注册表编辑器.

. .

以上注册表修复程序将关闭当前用户的弹出对话框,如果您希望此设置影响计算机上的所有用户,则需要在注册表中的HKEY_LOCAL_MACHINE中创建一个类似的注册表项.默认情况下,此密钥不存在,因此需要创建.

The above registry fix will turn off the popup dialog for the current user, if you want the setting to affect all users on the computer then a similar registry key needs to be created in the registry at HKEY_LOCAL_MACHINE. This key isn’t present by default so needs to be created.

了解更多: 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆