在 Windows 7 上获取有用的错误消息

发布于 2024-09-09 06:04:59 字数 283 浏览 0 评论 0原文

在 Windows XP 开发过程中,如果我的应用程序遇到未处理的异常,它将显示错误消息“X 已遇到并错误...”,并提供启动调试器的选项。在 Windows 7 下,我收到的只是一条消息:“X 已停止工作,Windows 正在检查解决方案”。

我无法再看到错误消息的任何详细信息,也没有提供调试选项。

我正在使用 VS2005,据我所知,JIT 调试已启用。

有没有办法返回WinXP 的有用错误消息?

编辑:它只是一个标准的 WinForms 桌面应用程序,不需要特殊的权限即可运行。

During Windows XP development, if my application encountered an unhandled exception it would display an error message "X has encountered and error..." and give me the option to launch the debugger. Under Windows 7, all I get is a message that says "X has stopped working, Windows is checking for a solution".

I can no longer see any details of the error message and I'm not given the option to debug.

I'm using VS2005 and JIT debugging is enabled as far as I can tell.

Is there anyway to get back to the useful error messages of WinXP?

Edit: It is just a standard WinForms desktop application, requiring no special permissions to run.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

腹黑女流氓 2024-09-16 06:04:59

也许您发现 WER(Windows 错误报告)设置很有用:

http://msdn.microsoft.com/en-us/library/bb513638%28VS.85%29.aspx

此外,您还可以将此作为与 WER 取得联系的登陆点:

http://msdn.microsoft.com/en-us /library/bb513641%28v=VS.85%29.aspx

不幸的是我无法直接回答你的问题,但这也许可以作为进一步研究的提示。

Maybe you find the WER (Windows Error Reporting) settings useful:

http://msdn.microsoft.com/en-us/library/bb513638%28VS.85%29.aspx

Also, you can use this as a landing point to get in touch with WER:

http://msdn.microsoft.com/en-us/library/bb513641%28v=VS.85%29.aspx

Unfortunately I can't directly answer your question, but perhaps this can serve as a hint for further researching.

乜一 2024-09-16 06:04:59

好的,感谢 leppie 的评论找到了答案。

  1. 转到控制面板 - >操作中心
  2. 展开维护选项卡并选择“检查问题报告的解决方案”下的设置
  3. 更改为“从不检查解决方案”

现在,当发生错误时,对话框中会出现“调试程序”选项。

OK, found an answer thanks to the comment from leppie.

  1. Go to Control Panels->Action Center
  2. Expand the Maintenance tab and select Settings under "Check for solutions to problem reports"
  3. Change to "Never check for solutions"

Now when the error occurs there is a "Debug the program" option in the dialog.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文