自动创建Visual C ++故障转储 [英] Automatically create Visual C++ crash dump

查看:98
本文介绍了自动创建Visual C ++故障转储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法可以在应用程序崩溃时(在Windows操作系统上)自动创建崩溃转储文件,就像我可以使用附加的Visual Studio调试器进行保存一样?也就是说,我希望能够使用自动创建的故障转储文件在Visual Studio中调试应用程序.

Is there a way to create a crash dump file automatically on application crash (on Windows OS), same as if I could save with Visual Studio debugger attached? That is, I want to be able to debug my application in Visual Studio with automatically created crash dump files.

推荐答案

更新:

Update: Debug Diag 2.0 is now available. This release has native support for .NET dumps.

是的,可以使用 DebugDiag 1.2 .

Debug Diagnostic Tool(DebugDiag)旨在协助 解决诸如挂起,性能降低,内存泄漏之类的问题 或碎片,并在任何用户模式进程中崩溃.工具 包括针对Internet信息的其他调试脚本 服务(IIS)应用程序,Web数据访问组件,COM +和 相关的Microsoft技术.

The Debug Diagnostic Tool (DebugDiag) is designed to assist in troubleshooting issues such as hangs, slow performance, memory leaks or fragmentation, and crashes in any user-mode process. The tool includes additional debugging scripts focused on Internet Information Services (IIS) applications, web data access components, COM+ and related Microsoft technologies.

它甚至允许您在转储上运行崩溃/挂起分析,并为您提供有关处于睡眠状态(用于挂起转储)的调用堆栈和线程的良好报告.它还使您也可以进行自动转储.可以在DebugDiag,Visual Studio和WinDbg中分析DebugDiag提取的转储.

It even allows you to run crash/hang analysis on the dump and give you a nice report about the callstack and thread that are in sleep state (for hang dumps). It also allows you to take on the fly dumps too. The dumps taken by DebugDiag can be analyzed in DebugDiag, Visual Studio and WinDbg.

编辑:有关如何使用DebugDiag的MSDN链接,请此处.

The MSDN link to how to use DebugDiag is here.

这篇关于自动创建Visual C ++故障转储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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