浏览VC6 DLL变量内容(DEBUG) [英] Browse VC6 DLL variables content (DEBUG)

查看:177
本文介绍了浏览VC6 DLL变量内容(DEBUG)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图调试一个旧的VC6 DLL,我设法通过代码,但不幸的是我的vc9调试器没有显示dll中的变量的内容。 (浏览信息我猜)

当我在VC6中调试时,我设法看到我的内容,但我宁愿能够在同一时间调试我的托管代码。



也许我在我的VC6项目中缺少一些编译参数。如果有人有任何想法会很棒,我会获得很多时间。



提前感谢
鲍里斯


\\ div class =h2_lin>解决方案

使用VC8(VS2005)启动(我认为)调试器不再支持Codeview符号,因此您需要确保在构建DLL时在VC6中,您指定它创建一个PDB符号文件。



从命令行它是/ PDB:



在IDE中,转到项目的链接选项卡和调试类别 - 确保选择调试信息和Microsoft格式。



VS2008的调试器应该能够加载使用VC6 PDB符号。



有趣的是,当调试VC6二进制时,VS2008调试器不会在本地窗口中显示任何变量,但它只显示其值在Autos和Watch窗口中都可以使用,并且还会在工具提示弹出式窗口中显示其值。奇怪的。


I'm trying to debug an old VC6 dll, I manage to go through the code but unfortunately my vc9 debugger doesn't show the content of the variables in the dll. (browsing info I guess)

I manage to see the content of my dll when I debug it in VC6 but I would prefer to be able to debug in the same time as my managed code.

Maybe I'm missing some compilation parameters in my VC6 project. Would be great if someone had any idea, I'll then gain a lot of time.

Thanks in advance, Boris

解决方案

Starting (I think) with VC8 (VS2005) the debugger no longer supports Codeview symbols, so you'll need to make sure that when you build the DLL in VC6 you specify that it create a PDB symbol file.

from the command line it's /PDB:

In the IDE go to the project's Link tab and Debug category - Make sure "Debug info" and "Microsoft format" are selected.

VS2008's debugger should be able to load and use the VC6 PDB symbols.

Interestingly, when debugging a VC6 binary the VS2008 debugger won't show any variables in the 'Locals' windows, but it shows their values just fine in the 'Autos' and 'Watch' windows and will also show their values in tooltip pop-ups. Weird.

这篇关于浏览VC6 DLL变量内容(DEBUG)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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