简体   繁体   中英

How to activate breakpoints in a BPL file?

I'm using 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') .

Both are separate projects in Delphi.

I open the BBB.Bpl project, indicating my XXX.exe as the Host application. 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.

When I start the BBB project with eg. F9 , the XXX application performs the LoadPackage procedure without fail, and executes the commands from the BBB without fail. But, the breakpoints in the BBB code are disabled, also the blue dots are not visible. The breakpoints in the code of the XXX application are working fine.

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.

Can anyone please give me some hints?

you should attach it(bpl) to main app when the app was running as below.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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