VSMonoDebugger icon indicating copy to clipboard operation
VSMonoDebugger copied to clipboard

Unable to Debug/Attach after upgrade to VS Pro 16.7.2

Open ElRapoh opened this issue 5 years ago • 4 comments

After Visual Studio Upgrade 2019 from 16.4.4 to 16.7.2 there's no way to run VSMonoDebugger. Removing and reinstalling VSMonoDebugger doesn't help.

Cattura

I tried to download VSMonoDebugger and start debugging. Here is the exception:

Message: Method not found: 'Void Mono.Debugging.Evaluation.ObjectValueAdaptor.set_DebuggerSession(Mono.Debugging.Client.DebuggerSession)'.

Source: Mono.Debugging.Soft

Stack trace: at Mono.Debugging.Soft.SoftDebuggerSession..ctor() at Mono.Debugging.VisualStudio.XamarinEngine.SerializeDebuggerOptions(String jsonDebugOptions) in C:[...]\VSMonoDebugger-master\VSMonoDebugger\Mono.Debugging.VisualStudio\XamarinEngine.cs:line 41

ElRapoh avatar Aug 31 '20 07:08 ElRapoh

Issue was resolved on this fork: https://github.com/ElRapoh/VSMonoDebugger

Al possible NuGet packaged have been upgraded and the local copy of some libraries has been disabled.

Most problems seem to be related to Xamarin. Maybe the right way to resolve them would be adding Xamarin as a prerequisite for VSMonoDebugger and make use Mono debugging libraries provided by VS instead of adding them to the package.

ElRapoh avatar Sep 01 '20 07:09 ElRapoh

Why don't you submit a PR?

BDisp avatar Sep 01 '20 10:09 BDisp

I made my changes at work only for our development purposes (we need extensively to debug mono on Linux from VS), no extensive tests were done on different VS versions and behaviours.

I just gave to the code some kicks to make him work on our workstations.

Better if someone who actively mantains the code verifies what I've done and then eventually makes a decent commit on the production trunk.

ElRapoh avatar Sep 01 '20 11:09 ElRapoh

Can you use the new VSMonoDebugger2022 with Visual Studio 2022?

GordianDotNet avatar Sep 18 '22 20:09 GordianDotNet