Minimal working example for Delphi RSP-33891
Steps to repoduce in Delphi 10.4.2 with patch 1-3:
-
Clone the MWE repo
-
Open the project group in delphi
-
Build both projects
-
Restart delphi.
-
Set breakpoint in DllUnit2.pas in line 12
-
Build Application.exe
-
Start debugging (F9)
-
When the breakpoint was hit the callstack should show that only the units of the Application.exe project have debug symbols.
-
Stop debugging
-
Build SomeDll.dll
-
Start debugging (F9)
-
When the breakpoint was hit the callstack should show the opposite situation.
-
Stop debugging
-
Change the unit output directory for both projects from .\compiled to the default value of .$(Platform)$(Config) 14b. Alternatively: you can copy the dcus from .\compiled into .$(Platform)$(Config) for the same effect
-
Start debugging (F9)
-
Now all symbols are available.