问题描述
是否有一种方法可以在应用程序崩溃时(在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.
推荐答案
更新:调试诊断2.0 现在可用.此版本具有对.NET转储的本机支持.
Update: Debug Diag 2.0 is now available. This release has native support for .NET dumps.
是的,可以使用 DebugDiag 1.2 .
它甚至允许您在转储上运行崩溃/挂起分析,并为您提供有关处于睡眠状态(用于挂起转储)的调用堆栈和线程的良好报告.它还使您也可以进行自动转储.可以在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 ++故障转储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!