如果我有 dll 源代码,是否可以从 Delphi 调试 C++builder dll?
我有一个用 Delphi 7 编写的应用程序,它使用用 BCB 5 编写的 c++ dll。
我想从 Delphi IDE 调试这个 dll,这可能吗?
如果可以的话调试步骤是什么?
作为附加信息,我有 dll 的完整源代码。
I have an application written in Delphi 7 which uses a c++ dll written in BCB 5.
I want to debug this dll from the Delphi IDE is this possible?
If it's possible which are the steps to debug?
As additional information I have the full source code of the dll.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
自从我一起处理 C++ / Delphi 以来已经有一段时间了。但如果我没记错的话,您可以使用 BCB IDE 来运行使用您的 DLL 的 Delphi 应用程序(已编译)。基本上,在 BCB 的项目设置中,您可以设置一个程序在单击“运行”按钮时运行,我相信您将能够设置断点和在调用 DLL 函数时捕获的内容通过该应用程序。尽管如此,这仍然意味着您拥有 BCB。
It has been a while since I have dealt with C++ / Delphi together. But if I remember correctly, you can use the BCB IDE to run the Delphi application (compiled already) that uses your DLL. Basically, in your project settings in BCB, you can set a program to run when you click the "run" button, and I believe that you will be able to set breakpoints and stuff that will be caught when functions of your DLL are being called by that application. Still, this implies that you have BCB.
我记得,自上次尝试此操作以来已经有一段时间了,您需要 C++ Builder IDE 来执行此操作。
My recollection, and it's been a while since I last tried this, is that you need the C++ Builder IDE to do this.
应该是可能的:
我经常在 Delphi 6 IDE 中调试 BCB5 dll。我的 delphi 6 应用程序使用该 DLL,然后我可以从 delphi 代码单步进入 bcb 代码(然后返回)。所以我也可能使用 Delphi 7。
默认情况下,Delphi 并未配置为执行此操作。当时我在网上找到了如何做的解释。不确定,但可能是以下页面: http://www.delphifaq .com/faq/delphi/delphi_ide/f178.shtml
您还需要在调试模式下编译 dll,并在 delphi 应用程序的项目选项中指示 dll 源代码的路径。
It should be possible:
I have done it quite often to debug a BCB5 dll within the Delphi 6 IDE. My delphi 6 application uses the DLL and I can then step from the delphi code into the bcb code (and back). So I might work with Delphi 7 too.
Delphi isn't configured by default to do that. At that time I found an explanation on the web how to do it. Not sure, but it might have been the following page: http://www.delphifaq.com/faq/delphi/delphi_ide/f178.shtml
You will also need to compile the dll in debug mode and to indicate the path to the source code of the dll in the project options of your delphi application.