在vc ++ dll中找不到调试信息 [英] debugging information not find in vc++ dll

查看:82
本文介绍了在vc ++ dll中找不到调试信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个dll,我想调试我的dll.我也浏览了exe的路径,但是现在我想更改该exe的路径,因为它不是正确的exe.在属性中,我删除了该路径也可以从调试选项查看exe.但是,当我开始调试时,错误消息显示找不到或不匹配exe的调试信息.二进制文件不是使用调试信息构建的
输出窗口显示............

I have a dll and I want to debug my dll.I have also browse the path of exe.But now I want to change the path of that exe because it was not correct exe.In the property I have remove the path of exe from the debugging option also.but when I start the debugging the error message show that Debugging information for exe cannot be found or does not match.Binary was not build with debug information
And output window show that..............

'hello.exe': Loaded 'C:\Users\Acer\Desktop\dll_example\hello.exe', Binary was not built with debug information.
'hello.exe': Loaded 'C:\Windows\System32\ntdll.dll'
'hello.exe': Loaded 'C:\Windows\System32\kernel32.dll'
'hello.exe': Loaded 'C:\Windows\System32\KernelBase.dll'
'hello.exe': Loaded 'C:\Windows\System32\WinSCard.dll'
'hello.exe': Loaded 'C:\Windows\System32\msvcrt.dll'
'hello.exe': Loaded 'C:\Windows\System32\rpcrt4.dll'
'hello.exe': Loaded 'C:\Users\Acer\Desktop\dll_example\helloworld.dll'
'hello.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcr90.dll'
'hello.exe': Loaded 'C:\Windows\System32\user32.dll'
'hello.exe': Loaded 'C:\Windows\System32\gdi32.dll'
'hello.exe': Loaded 'C:\Windows\System32\lpk.dll'
'hello.exe': Loaded 'C:\Windows\System32\usp10.dll'
'hello.exe': Loaded 'C:\Windows\System32\comdlg32.dll'
'hello.exe': Loaded 'C:\Windows\System32\shlwapi.dll'
'hello.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7600.16661_none_ebfb56996c72aefc\comctl32.dll'
'hello.exe': Loaded 'C:\Windows\System32\advapi32.dll'
'hello.exe': Loaded 'C:\Windows\System32\sechost.dll'
'hello.exe': Loaded 'C:\Windows\System32\shell32.dll'
'hello.exe': Loaded 'C:\Windows\System32\winspool.drv'
'hello.exe': Loaded 'C:\Windows\System32\oledlg.dll'
'hello.exe': Loaded 'C:\Windows\System32\ole32.dll'
'hello.exe': Loaded 'C:\Windows\System32\olepro32.dll'
'hello.exe': Loaded 'C:\Windows\System32\oleaut32.dll'
The program '[0x1740] hello.exe: Native' has exited with code 0 (0x0).

推荐答案

确保已定义_DEBUG
项目属性->配置属性-> C/C ++->预处理器->预处理程序定义
make sure that _DEBUG is defined
project properties -> Configuration Properties -> C/C++ -> Preprocessor -> Preprocessor Definitions


这篇关于在vc ++ dll中找不到调试信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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