Delphi动态调试动态库步骤

本文详细介绍Delphi5环境下如何调试动态库(包括进程内COM组件)。
name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-3528650120430763&dt=1184237466281&lmt=1184237466&format=468x60_as&output=html&correlator=1184237466281&url=http%3A%2F%2Fgmai9999.googlepages.com%2Fhome&ad_type=text_image&ui=rc%3A0&cc=100&flash=9&u_h=768&u_w=1024&u_ah=708&u_aw=1024&u_cd=32&u_tz=480&u_java=true" frameborder="0" width="468" scrolling="no" height="60" allowtransparency="allowtransparency">

1. 在Run/Parameters设置宿主程序


2. 打开Modules对话框(View/Debug/Modules),右键选择“Add Module...”


3. 选择所需要调试的动态库


4. 将该动态库设为


5. 运行程序,程序会在加载该动态库时停下来


6. 再次打开Modules对话框,找到该动态库,右键选择“Reload Symbol Table...”



7. 在源代码中需要跟踪的地方设断点


8. 按F9继续运行程序,程序会在所设断点处停下来。


9. 再次调试时,重复5到8步即可。

注意:编绎后的DLL文件,必需和源代码放在同一个目录,对于一般动态库,宿主程序目录下也必需有一个相同拷贝,而COM组件必需进行注册。 
name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-3528650120430763&dt=1184237466281&lmt=1184237466&format=468x60_as&output=html&correlator=1184237466281&url=http%3A%2F%2Fgmai9999.googlepages.com%2Fhome&ad_type=text_image&ui=rc%3A0&cc=100&flash=9&u_h=768&u_w=1024&u_ah=708&u_aw=1024&u_cd=32&u_tz=480&u_java=true" frameborder="0" width="468" scrolling="no" height="60" allowtransparency="allowtransparency"> 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值