Jump to content
@AT

Regression - Delphi 12 - Unable to debug dynamically loaded packages

Recommended Posts

Posted (edited)

I'm facing regression in Delphi 12 which blocks me in debugging EMS Server packages.  Debugger does not stop at any breakpoints in source code; debugger does not display any symbols in CPU Debug View when execution is stopped in the package, 

After short investigation I found that local debuggers (Win32, Win64) do not load debug symbols for dynamically loaded packages via LoadPackage function.

Issue is reproduced with Delphi 12 SP1 and is not reproduced in Delphi 11.3. 

 

 

Edited by @AT

Share this post


Link to post

Hi, We encountered something similar with statically linked packages. In 11.3 it is working. Have you reported it to the Embarcadero yet? (I know that the Quality Portal is read-only these days).

Share this post


Link to post

We have received reports for this issue already. We don't have a ETA for the solution, but have been looking into it

  • Like 2

Share this post


Link to post

Unfortunately still no solution.

 

Quote

do not load debug symbols for dynamically loaded packages 

That's not quite true, because the log claims that the debug infos are being loaded,

but I also know that the log likes to lie.

 

Because it compiles with external TDS, the *.tds are deleted and yet the debug log claims that the debug infos are being loaded for this EXE/DLL/BPL, which can't be true because they are gone.

First of all, loading such packages with missing *.tds is really extremely slow

and then Delphi itself is too stupid to recognize the problem here, because they create a 1-byte DEBUG section in the actual compilation when the TDS is saved externally, but this "one" byte itself cannot of course contain any debug infos.

  • Like 1

Share this post


Link to post

Although there is one issue mentioned in this area (RSS-1044: Debug Delphi 12 IDE for Components design time), that issue lacks public access, so we don't know about the details.

 

A short test here still exposes the problem, but there might be other things involved having influence on it. I would like to hear from others if they could get it working with 12.2.

Share this post


Link to post

thats not good, having a problem with a RAD server package, which i would like to debug, gonna be a problem this week.

Maybe the right time to say goodbye to RADserver and transfer the code to MARS (the Rest Server, not the planet)

 

@Marco CantuWhats the status of this problem? 

 

 

Edited by mvanrijnen

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×