Providing a source code when debugging external libraries with Rider (Unity/Mono)
Hi,
Right now when debugging external libraries, if debugger fails to find a source code Rider automatically decompiles it and allows you to debug decompiled code. This is pretty amazing, however I would like to know if there is any way to provide it with an actual source code (if paths in .mdb do not match your local paths)?
Our products depend heavily on DLLs. Unfortunately Mono does not support SourceLink neither Source Server, so stepping into DLLs built outside of your local system is a nightmare. The only option is to use mdbrebase tool from mono toolset to patch .mdb files and provide local source code paths if we want to debug an external DLL without rebuilding it.
I would be happy to use Rider if it solved the problem; or I can write my own extension for Rider/VS/VSCode. I spent some time researching Mono Soft Debugger and it's protocol but I do not see any way to provide a source code or resolve it when it's missing. I wonder how Rider debugger does it after decompiling?
Thanks for any help!
Please sign in to leave a comment.