如何获取Winforms应用程序的转储文件 [英] How can I take a dump file for Winforms application

查看:99
本文介绍了如何获取Winforms应用程序的转储文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C#应用程序,由于未知原因而崩溃。

I have a C# application which is crashing for unknown reason.

为了理解这个问题,我想为此添加一个转储文件。

For understanding the issue, i want to take a dump file for it.

我该怎么做?

非常感谢,

Oz 。

推荐答案

如果您使用的是Windows Vista / 7或Server 2008,则可以打开任务管理器并手动创建转储。文件,如此处。正如Mez所建议的那样,我建议使用Windbg捕获崩溃,因为这样您就可以在该过程中立即执行崩溃转储分析。

If you're using Windows Vista/7 or Server 2008, then you can open Task Manager and manually create a dump file, as explained here. I would recommend using Windbg for catching the crash, as Mez suggested, since then you can perform immediate crash dump analysis on the process.

这篇关于如何获取Winforms应用程序的转储文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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