raddebugger icon indicating copy to clipboard operation
raddebugger copied to clipboard

I can't step on source files from "hot reloaded" dlls

Open DevAgu93 opened this issue 1 year ago • 3 comments
trafficstars

When I compile and reload a dll, stepping through the source files doesn't work anymore, only on disassembly.

DevAgu93 avatar Jan 13 '24 18:01 DevAgu93

Can you test the temporary solution from #32?

DmitriySalnikov avatar Jan 15 '24 06:01 DmitriySalnikov

Still doesn't work.

DevAgu93 avatar Jan 15 '24 17:01 DevAgu93

Thanks for this report. I've been straightening out a few other major issues but will look into this one shortly.

ryanfleury avatar Jan 15 '24 18:01 ryanfleury

@DevAgu93 Can you give this a try after pulling & building the most recent changes in the master branch? Let me know if you still run into issues.

ryanfleury avatar Jan 16 '24 04:01 ryanfleury

It works! though every time I compile, the game pauses for a bit before the debugger loads the dll. I assume that's because it's unoptimized code.

DevAgu93 avatar Jan 16 '24 15:01 DevAgu93

the game pauses for a bit before the debugger loads the dll.

Just to explain myself better: the program freezes.

DevAgu93 avatar Jan 16 '24 15:01 DevAgu93

Great! Yeah, that delay is due to the debugger re-converting the PDB to RADDBG debug info for the module you're rebuilding. That is currently pretty slow because it's an unoptimized reference converter that was built with correctness & completeness as a priority. That will improve with time, since that is one of the main tasks in order to get the debugger up to speed for e.g. UE-sized projects.

In any case - closing this now, since the hot reloaded DLL issue has been fixed.

ryanfleury avatar Jan 16 '24 17:01 ryanfleury