崩溃前如何使我的代码创建转储文件? [英] How to make my code creating dump file before crash?

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

问题描述

我在C#和C ++中有一些代码(在一个项目中)。
该代码有些崩溃,我试图找到它。
,但是此崩溃不会在任何时候重现-我找不到它。

I have some code in C# and C++ ( in one project ). This code have some crash and i trying t find it. but this crash is not reproduce any time - and i can't find it.

我想配置代码/ Windows OS在崩溃时创建转储文件。

I want to configure the code / the windows OS to create dump file on the crash.

我的局限性是……我对崩溃崩溃的机器的访问权限有限-这不是开发机器..这是测试实验室机器

the limitation that i have are ... I have limited access to the machine that this crash reproduce on - this is not developing machine .. this is testing Lab machine

那么,该怎么做?
如何更改在任何崩溃时将创建的新转储文件的解决方案中的属性?

So, How to do it ? How can i change the properties in the solution that a new dump file will created on any crash?

(目的是能够分析转储在windbg工具中)

(the aim is to be able to analyze the dump in the windbg tool)

推荐答案

我发现使用 ProcDump 。尝试使用-e(在未处理的异常时创建转储),-ma(具有完整的进程内存)和-t(在应用程序终止时创建转储)选项。

I find it easier to use ProcDump. Try the -e (create dump on unhandled exceptions), -ma (w/ full process memory), and -t (create dump on app termination) options.

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

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