如何配置Win2008生成故障转储
我正在 Win2008 服务器计算机上运行我的 C++ 服务。它随机崩溃,我不知道为什么。这种情况发生在客户站点的多台机器上。
如何配置系统自动生成进程转储? 我需要一种需要最少安装和用户界面的方法,最好只需要一些注册表修改。
谢谢。
[编辑]等待...
I am running my C++ servi ce on Win2008 server machine. It crashes randomaly, and i do not know why. This is happening on multiple machines in customer site.
How can i configure the system to auto generate a dump of the process?
I need a method that will require minimal installations and UI, preferably only some registry hacks.
Thanks.
[edit] waiting...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以在计算机上本地使用 Windows 错误报告,而无需与 Microsoft 合作,也无需对您的代码进行签名。 WER 可以配置为存储转储的本地副本。 MSDN 文档位于:
http://msdn。 microsoft.com/en-us/library/bb787181(v=vs.85).aspx
这是一个简单、经过深思熟虑的系统,只需配置几个注册表设置。
You can use Windows Error Reporting locally on a machine without having to involve Microsoft and without having to sign your code. WER can be configured to store local copies of dumps. The MSDN documentation is here:
http://msdn.microsoft.com/en-us/library/bb787181(v=vs.85).aspx
It's a simple, well thought-out system, and is only a couple of registry settings to configure.
如果您的客户允许,那么我建议您安装 Microsoft 的 DebugDiag。您可以将该工具配置为在应用程序崩溃时生成转储,并要求他们向您发送这些转储。我经常使用这个方法并且发现它很成功。如果需要任何帮助,请告诉我。
If your customer allows then i would suggest you to install DebugDiag from Microsoft. You can configure the tool to generate dumps when your application crashes and ask them to send you those dumps. I have used this quite often and found it to be successfull. If any help required please let me know.
签署您的可执行文件,然后向 Microsoft 注册 Windows 错误报告(签名证书需要付费,但 WER 是免费的)。当用户点击“发送到 Microsoft”按钮时,这将收集崩溃日志。这些日志将保留在那里,直到您登录来检索它们。这不需要在用户的计算机上进行其他安装。
Sign your executable then register with Microsoft for Windows Error Reporting (the signing certificate costs but WER is free). This will then collect the crash logs when the user hits the 'Send to Microsoft' button. These logs will then sit there until you log in to retrieve them. This requires no other installations on the user's machine.