GordianDotNet / VSMonoDebugger

Enables Visual Studio 2017 to deploy and debug a mono application on remote linux machines via SSH.
MIT License
49 stars 25 forks source link

Unable to Debug/Attach after upgrade to VS Pro 16.7.2 #22

Open ElRapoh opened 4 years ago

ElRapoh commented 4 years ago

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 commented 4 years ago

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.

BDisp commented 4 years ago

Why don't you submit a PR?

ElRapoh commented 4 years ago

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.

GordianDotNet commented 2 years ago

Can you use the new VSMonoDebugger2022 with Visual Studio 2022?