VC ++ DLL调试 [英] VC++ DLL debugging

查看:63
本文介绍了VC ++ DLL调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个应用程序可以测试DLL和DLL项目.
当我开始调试DLL时,会遇到aplilication中的断点,但不会遇到DLL中的断点.因此,我无法调试DLL本身.

我已经将调试应用程序设置为启动项目.

Hi,

I have an application to test the DLL and the DLL project.
When i start to debug the DLL, the breakpoint in the apllication is encountered but not the ones in the DLL. So, I am not able to debug the DLL itself.

I have set the debugging apllication as start up project. is there any other settings to be done here?

推荐答案

在调试"构建中构建您的dll项目.
将其lib和dll复制到测试应用程序中.
确保已正确链接库.

问候
rajesh
Build your dll project in Debug build.
Copy its lib and dll in your test application.
Make sure you have linked the lib properly.

regards
rajesh


打开Dll项目,在DLL中设置断点,单击F5开始调试,您将得到一个提示,提示您可以调用该dll的合适exe.浏览找到您的调试应用程序,当它调用您的dll时,您应该休息一下.
Open the Dll project, set the breakpoints in your DLL, click F5 to commence debugging, and you will get a prompt for a suitable exe that can call the dll. Browse to find your debugging appliction, and when it calls your dll you should get your breaks.


这篇关于VC ++ DLL调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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