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

查看:36
本文介绍了自动创建 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.

推荐答案

更新: Debug Diag 2.0 现已推出.此版本具有对 .NET 转储的本机支持.

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

是的,可以使用 DebugDiag 1.2.

调试诊断工具 (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 进行的转储可以在 DebugDiag、Visual Studio 和 WinDbg 中进行分析.

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天全站免登陆