有什么工具可以轻松配置 Windows 错误报告、JIT 调试器等?
当你的程序在非开发环境崩溃时,仍然有办法定位错误。您可以让 Windows 创建完整的故障转储,也可以让它在进程消失之前附加一个调试器,例如 Windbg 或 NTSD。然而,配置这些选项需要探测注册表,并设置难以记住的值。
我想知道是否有任何小而简单的实用程序,可以轻松配置 Windows 错误报告, JIT 调试器等等。沃森博士能够做到其中一些,但他现在已经退休了。
(如果不存在这样的工具,我可能已经找到了我的下一个副项目......)
When your program crashes at a non-development environment, there are still ways to locate the error. You can have the Windows create a full crash dump, or you can have it attach a debugger such as windbg or NTSD before the process vanishes. However, configuring those options require probing the registry, and setting values that are hard to remember.
I'm wondering if there's any small and simple utility, that can easily configure Windows Error Reporting, JIT debugger and so on. Dr. Watson was able to do some of that, but he's retired now.
(If no such tool exists, I might have found my next side project...)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用以下命令将 NTSD 设为您的 JIT 调试器:
在 64 位操作系统上,需要使用两个命令来完成 - 一次使用 x86 版本的 ntsd,一次使用 x64 版本,以便您能够对两者使用 JIT 调试器32 和 64 位应用程序。
对于Windows错误报告,官方支持的方式是使用组策略。启动 gpedit.msc,导航至计算机配置 ->管理模板 -> Windows 组件 -> Windows 错误报告。组策略需要手动配置设置,您无法编写脚本,但可以将其部署到域中的所有计算机,前提是您是域管理员。我不知道有什么工具可以让单台计算机变得更容易,它可能会是一个很好的项目。
You can make NTSD your JIT debugger with this command:
On 64 bit OS it will need to be done with two commands -- once with x86 version of ntsd, once with x64 version, so that you will be able to use JIT debugger for both 32 and 64 bit applications.
For the Windows Error Reporting, the officially supported way is using Group Policy. Launch gpedit.msc, navigate to Computer Configuration -> Administrative Templates -> Windows Components -> Windows Error Reporting. Group Policy requires manual configuration of settings, you cannot script it, but you can deploy this to all computers in domain, provided you are domain administrator. I'm not aware for any tools that can make it easier for single computers, it would probably make a good project.