dnSpyEx / dnSpy

Unofficial revival of the well known .NET debugger and assembly editor, dnSpy
GNU General Public License v3.0
7.02k stars 462 forks source link

Feature/Enhancement - Improve mono-sdb implementation to allow remote debugging instances #298

Open D-4-N opened 9 months ago

D-4-N commented 9 months ago

dnSpy's current mono sdb implementation makes assumptions that prevent remote debugging instances

The current implementation is as follows:

https://github.com/dnSpyEx/dnSpy/blob/b12cbff0206a5156c5fcfb8c4f9845048e08a4ca/Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet.Mono/Impl/DbgEngineImpl.cs#L440-L454

While this works for local debugging instances, it fails to do so when attempting to attach to remote mono instances, showing the following message in the process.

image