WinDbg中以在崩溃创建转储文件? [英] WinDbg to create dump file upon crash?

查看:235
本文介绍了WinDbg中以在崩溃创建转储文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们遇到了一个例外,我们的应用程序。使用Dr.Watson我们没有捕获任何DMP以及日志文件。有人告诉我,WinDbg的是另一种在程序的exceptionn /崩溃创建转储文件。一个google搜索后,我遇到了一大堆的困惑。首先,我想确认一下,是否有可能,要创造转储文件WinDbg的帮助。其次,有没有推荐的简单的命令行WinDbg连接到一个应用程序来获得在其崩溃转储文件?多谢!

We're having an exception with our application. Using Dr.Watson we didn't capture any dmp as well log files. I'm told, WinDbg is an alternative to create dump files upon exceptionn/crash of a program. After a googling, I come across a piles of confusion. First of all, I'd like to confirm, whether it is possible, to creat dump files with help of WinDbg. Second, is there any recommended simple command lines to attach WinDbg to an application to get the dump files upon its crash? Thanks alot!

推荐答案

在这种情况下,我们通常会推荐给我们的用户下载的 procdump (这正好可以从zip文件中提取,无需安装),然后我们给他们一个包含像这样一个批处理文件:

In this situation we usually recommend to our users to download procdump (which can just be extracted from the zip file, no installation required) and then we give them a batch file that contains something like this:

mkdir c:\dumps
procdump -e -c 10 -w myprocess.exe c:\dumps

在该过程中产生未处理的异常会造成在 c进行转储文件:\转储目录,你可以加载到Visual Studio或WinDBG的(即!分析-v 命令是你的朋友)

When the process generates an unhandled exception it will create a dump file in the c:\dumps directory that you can load into Visual Studio or Windbg (the !analyze -v command is your friend)

这篇关于WinDbg中以在崩溃创建转储文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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