简体   繁体   English

如何使用Delphi代码调试VC ++中内置的DLL文件?

[英]How to debug a DLL file built in VC++ with Delphi code?

I am a developer working on Delphi. 我是Delphi上的开发人员。 In my project I have added a DLL file which is built in VC++. 在我的项目中,我添加了一个VC ++内置的DLL文件。 I need to debug the DLL file to fix some issues. 我需要调试DLL文件以修复某些问题。

So what are the steps needed to follow in order to debug DLL file with Delphi code? 那么,用Delphi代码调试DLL文件需要遵循哪些步骤?

You cannot debug the DLL from inside of Delphi, unless you do not mind stepping through the DLL's raw x86 assembly instructions. 您不能从Delphi内部调试DLL,除非您不介意逐步执行DLL的原始x86汇编指令。 Otherwise, you need to load the DLL's source code into VC++ and use VC++'s debugger, specifying your Delphi application as the executable to use for the debugging session. 否则,您需要将DLL的源代码加载到VC ++中,并使用VC ++的调试器,将您的Delphi应用程序指定为用于调试会话的可执行文件。

如果您不想使用VC ++,可能还可以使用Windows调试工具(WinDbg),但是Delphi无法调试VC ++代码,因为它不支持其符号文件格式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM