如何使C创建转储文件befor崩溃我的$ C $? [英] How to make my code creating dump file befor crash ?

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

问题描述

我有一些code在C#和C ++(在一个项目中)。 这code有一些碰撞,我想找不到它。 但这种崩溃是无法重现的任何时间 - 我不能找到它。

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.

我要配置的code / Windows操作系统上创建崩溃转储文件。

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(W /全进程的内存),和-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.

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

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