简体   繁体   English

如何在Delphi XE2上调试2个dll?

[英]How to debug 2 dlls on Delphi XE2?

I have EXE and 2 DLL used by this EXE. 我有EXE和此EXE使用的2个DLL。 All binary were compiled by Delphi XE2. 所有二进制文件均由Delphi XE2编译。

How to debug 2 DLL at one time while running EXE? 如何在运行EXE的同时调试2个DLL?

The second IDE can't attach to the process what is under debugging by the first IDE. 第二个IDE无法将第一个IDE正在调试的内容附加到进程中。

In fact you don't need to do anything special for this to work. 实际上,您不需要为此做任何特殊的事情。 You don't need to run multiple IDEs and you don't need to attach to processes. 您不需要运行多个IDE,也不需要附加到进程。 Start debugging your executable and simply step into the code in the DLLs. 开始调试可执行文件,然后简单地进入DLL中的代码。 The debugger takes care of it all for you. 调试器会为您完成所有工作。

I have solved debugger issue by the following steps: 我已通过以下步骤解决了调试器问题:

  1. Open any source file of each of two DLLs. 打开两个DLL的每一个的任何源文件。
  2. Add any breakpoint to each of two DLLs (maybe optional step). 将任何断点添加到两个DLL的每一个中(可能是可选步骤)。
  3. Run host application on one of two DLLs. 在两个DLL之一上运行主机应用程序。

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

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