Browse VC6 DLL variables content (DEBUG)

醉酒当歌 提交于 2019-12-08 10:12:06

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/1225163/browse-vc6-dll-variables-content-debug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!