d1 发帖数: 1213 | 1 小弟忙活了一个上午也没弄出来如何debug dll
小弟些了以个dll不过不知道,怎么debug
exe里面一定要先调用一个dll,但如果是已经编译好的dll,怎么实现debug呢
另外,怎么配置dll 的 proj来debug
谢谢 |
l***8 发帖数: 149 | 2 you need symbol files (*.pdb)
【在 d1 的大作中提到】 : 小弟忙活了一个上午也没弄出来如何debug dll : 小弟些了以个dll不过不知道,怎么debug : exe里面一定要先调用一个dll,但如果是已经编译好的dll,怎么实现debug呢 : 另外,怎么配置dll 的 proj来debug : 谢谢
|
d1 发帖数: 1213 | 3 HOW TO GET THEM?
【在 l***8 的大作中提到】 : you need symbol files (*.pdb)
|
l***8 发帖数: 149 | 4 should be there in the dll build?
【在 d1 的大作中提到】 : HOW TO GET THEM?
|
d1 发帖数: 1213 | 5 Yes, just gnerate a vc80.pdb in my dll build
THEN, HOW TO USE IT?
【在 l***8 的大作中提到】 : should be there in the dll build?
|
l***8 发帖数: 149 | 6 What happens when you single-step into one of your dll
function entry points from your debugger?
If you're seeing only x86 disassembly then probably you
need to figure out how to set your symbol path
【在 d1 的大作中提到】 : Yes, just gnerate a vc80.pdb in my dll build : THEN, HOW TO USE IT?
|
d1 发帖数: 1213 | 7 我现在根本跳不进DLL的程序里面debug
我以进debug模式,左边的小红点就变成空的了
【在 l***8 的大作中提到】 : What happens when you single-step into one of your dll : function entry points from your debugger? : If you're seeing only x86 disassembly then probably you : need to figure out how to set your symbol path
|
l***8 发帖数: 149 | 8 try single step with disassembly
most likely you'll just see a bunch of hex addresses on the callstack
each debugger is different so you'd better check help document
【在 d1 的大作中提到】 : 我现在根本跳不进DLL的程序里面debug : 我以进debug模式,左边的小红点就变成空的了
|
T*******i 发帖数: 4992 | 9 你的dll没有debug information当然没法debug了
【在 d1 的大作中提到】 : 我现在根本跳不进DLL的程序里面debug : 我以进debug模式,左边的小红点就变成空的了
|
d1 发帖数: 1213 | 10 可以ile
我就是把exe里面的pdb 和exe都考到dll的sln下面就号了
【在 l***8 的大作中提到】 : try single step with disassembly : most likely you'll just see a bunch of hex addresses on the callstack : each debugger is different so you'd better check help document
|