在 Windows 7 上获取有用的错误消息
在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许您发现 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.
好的,感谢 leppie 的评论找到了答案。
现在,当发生错误时,对话框中会出现“调试程序”选项。
OK, found an answer thanks to the comment from leppie.
Now when the error occurs there is a "Debug the program" option in the dialog.