简体   繁体   English

如何激活 BPL 文件中的断点?

[英]How to activate breakpoints in a BPL file?

I'm using Delphi 10.4.我正在使用 Delphi 10.4。

I have a Delphi executable XXX.exe and a Delphi package BBB.Bpl , which is loaded by XXX with LoadPackage('BBB.Bpl') .我有一个 Delphi 可执行文件XXX.exe和一个 Delphi package BBB.Bpl ,由XXXLoadPackage('BBB.Bpl')

Both are separate projects in Delphi.两者都是 Delphi 中的独立项目。

I open the BBB.Bpl project, indicating my XXX.exe as the Host application.我打开BBB.Bpl项目,将我的XXX.exe指定为主机应用程序。 After a build of BBB , blue dots on the right side of the editor are visible, and breakpoints can be set in the BBB code.构建完BBB后,可以看到编辑器右侧的蓝点,并且可以在BBB代码中设置断点。

When I start the BBB project with eg.当我开始BBB项目时,例如。 F9 , the XXX application performs the LoadPackage procedure without fail, and executes the commands from the BBB without fail. F9XXX应用程序执行LoadPackage过程无误,执行BBB命令无误。 But, the breakpoints in the BBB code are disabled, also the blue dots are not visible.但是, BBB代码中的断点被禁用,蓝点也不可见。 The breakpoints in the code of the XXX application are working fine. XXX应用程序代码中的断点工作正常。

I Googled a lot about this, nothing was helpful.我在谷歌上搜索了很多,没有任何帮助。

I tried to check and add more search paths, lots of compiler/linker options (Debug information = true, etc), but I am not able to debug the Bpl's source code.我尝试检查并添加更多搜索路径、大量编译器/链接器选项(调试信息 = true 等),但我无法调试 Bpl 的源代码。

Can anyone please give me some hints?谁能给我一些提示?

you should attach it(bpl) to main app when the app was running as below.当应用程序运行时,您应该将它(bpl)附加到主应用程序,如下所示。

在此处输入图像描述

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

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