进程崩溃时生成崩溃转储的最佳方法? [英] Best way to have crash dumps generated when processes crash?

查看:70
本文介绍了进程崩溃时生成崩溃转储的最佳方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 环境中(XPWin 7):

In Windows environments (XP and Win 7):

  • 当进程在系统上崩溃时自动生成崩溃转储的最佳方法是什么?
  • 安装程序 (MSI) 包可以执行此操作吗?

推荐答案

为 Windows 上的任何/特定进程自动转储的最佳方法之一是在注册表中配置一组条目.我在 Windows 7 64 位上尝试了以下操作.

One of the best way to have an automatic dump for any/specific process on Windows is to configure a set of entries in the registry. I tried the below on Windows 7 64 bit.

打开notepad.exe,粘贴以下条目并将其保存为EnableDump.reg".你可以给任何你想要的名字.

Open notepad.exe, paste the below entry and save it as "EnableDump.reg". You can give any name you wish.

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]
"DumpFolder"=hex(2):44,00,3a,00,5c,00,64,00,75,00,6d,00,70,00,00,00
"DumpCount"=dword:00000010
"DumpType"=dword:00000002
"CustomDumpFlags"=dword:00000000

双击EnableDump.reg"并选择是".我已将转储文件夹指定为d:\dump".您可以将其更改为您想要的任何文件夹.

Double click the "EnableDump.reg" and select 'Yes'. I have given the dump folder as 'd:\dump'. You can change it to whatever folder you wish.

尝试执行崩溃的应用程序,Windows 将显示错误对话框.选择关闭程序"选项.之后,您将在配置的文件夹中看到转储.转储文件的名称将为 .exe..dmp.

Try to execute a crashing application, Windows will display the error dialog. Choose 'Close the Program' option. After that you will see the dump in the configured folder. The name of the dump file will be .exe..dmp.

更多详情,您可以参考以下链接.

For more details, you can refer the below link.

http://msdn.microsoft.com/en-us/library/bb787181(VS.85).aspx

这篇关于进程崩溃时生成崩溃转储的最佳方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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