WinDBG工具无法响应我的vc ++应用程序崩溃 [英] WinDBG tool not able to respond to my vc++ application crash

查看:85
本文介绍了WinDBG工具无法响应我的vc ++应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在Windows XP中安装了WinDBG工具(dbg_x86_6.9.3.113)。

然后我注册WinDBG通过使用命令Windbg -I



为了生成崩溃转储,我创建了一个简单的基于对话框的应用程序

创建一个崩溃(应用程序崩溃)。



我将此应用程序的Symbol文件(.PDB)放在C-drive下的新文件夹中。在C-Drive WinDBG下也安装了。



在''符号文件路径...''我给了这个新文件夹的路径。



但是当我的应用程序崩溃时,该工具无法生成日志。



我在谷歌搜索过,但我没有得到我没有遵循的任何新事物(步骤)。



任何人都可以指导,我是否跳过使用WinDBG生成日志进行分析的任何步骤。



或者请给我正确的步骤(n详细信息)以生成转储。所以我会检查一下我是否跳过了任何步骤。



很快就会提供帮助。谢谢

Hi,

I have installed WinDBG tool (dbg_x86_6.9.3.113)in my windows XP .
Then I register WinDBG by using command "Windbg -I"

For generating a crash-dump ,I hv created a simple dialog based application which
creating a crash(application-crash).

I put the Symbol file(.PDB) of this application in side a new folder under C-drive .Under C-Drive WinDBG is also installed .

In ''Symbol file path...'' i gave this new folder''s path.

But while my application getting crashed the tool not able to generate log.

I hve searched in google, but i''m not getting any new thing(step) which i have not followed.

Can any one please guide, whether i''m skipping any step to use WinDBG to generate log for analysis.

Or else please send me the proper steps(n detail) to generate dump. So that i''ll check once whether i skipped any steps.

PLease help soon. Thanks

推荐答案

如果你真的想要调试你的应用程序,可以在方便的地方插入一个DebugBreak()函数调用 - 基于按钮或用户操作,或者甚至接近它的启动。
And if you REALLY want to debug your application, insert a DebugBreak() function call into it somewhere convenient - based on a button, or user action, or even close to its startup.


我自己不使用自动保存内存转储。

我总是手动存储内存转储或者在运行时附加windbg 。



TaskManager可以存储内存转储。

右键单击一个进程并选择创建转储文件。



如果在x64下运行,则需要使用32位版本的TaskManager来创建32位转储。否则它将保存在Wow64模式,这只会出现问题。

C:\ Windows \SysWOW64 \TaskMgr.exe 32位版本



另一种方法是使用sys内部的ProcDump来存储转储。它会自动选择正确的格式。

http://technet.microsoft.com /en-us/sysinternals/dd996900.aspx [ ^ ]



除了将自己的pdb文件添加到路径之外,为运行时库添加符号也很重要(os )。

http:/ /msdn.microsoft.com/en-us/library/windows/hardware/ff565400(v=vs.85).aspx [ ^ ]
I dont use automatic saving of memory dumps myself.
I always either store the memory dump manually or attach windbg while it is running.

The TaskManager can store memory dumps.
Right click on a process and select "Create Dump File".

If you run under x64, you will need to use the 32 bit version of TaskManager to create a 32 bit dump. Otherwise it will be saved in Wow64 mode, which only gives problems.
C:\Windows\SysWOW64\TaskMgr.exe 32 bit version

An alternative is to use ProcDump from sys internals for storing dumps. It automatically chooses the correct format.
http://technet.microsoft.com/en-us/sysinternals/dd996900.aspx[^]

Apart from adding your own pdb files to the path, it is also important to add the symbols for the runtime library (the os).
http://msdn.microsoft.com/en-us/library/windows/hardware/ff565400(v=vs.85).aspx[^]


这篇关于WinDBG工具无法响应我的vc ++应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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