Debugger initialization error: Mono.Debugging.Soft.DisconnectedException

After upgrading to version 4.0.4, I started getting a connection to the debugger, lost an error. I tried reinstalling all components (monodevelop, android sdk, java sdk, etc.). I also cleaned the registry, rebooted after reinstalling. But all efforts did not matter. All versions of android os (from 1.6 to 4.0) intended for everyone had the same error while debugging. The previous version worked most of the time during debugging. It was pretty hard to find answers on the Xamarin website. If anyone can shed light on this question, I am very grateful. Thanks.

+4
source share
6 answers

I tried all reboots, etc., and found this thread during my disappointment. Finally, I tried to create a release mode instead of debugging, and this magically solved the problem and attached it to the debugger. There after I was able to return to debugging without any problems.

+2
source

I fix the same problem by going to Mono android Settings and Settings:

  • link: adk and custom builds
  • Use shared runtime: yes
  • use fastdeployment: yes

hope that helps

+2
source

I also came across this.

I upgraded to 4.05 beta, but the problem persists. Then I turned off Project Properties -> Mono Android Options -> Use Fast Deployment (debug mode only), selected "Deploy solution manually", and the debugger was magically connected and worked correctly.

Not sure if a 4.05 update was necessary, but I suspect that disabling Fast Deployment has been fixed.

0
source

this problem occurs every time we change the file: for example, when changing the main.axml file. or when adding a new .so file. just run the project twice (first this error appears and the second move starts normally)

0
source

Restart Visual studio after deleting .vs, bin and obj folders

0
source
  • I solved this problem by downloading [Mono.Posix.dll] [1] and inserting it to indicate the path in the exception. My path: C: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ Professional \ Common7 \ IDE \ Extensions \ Xamarin.VisualStudio

  • [1] https://bugzilla.xamarin.com/attachment.cgi?id=22522

    Plus, add the following lines to devenev.exe.config along the path C: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ Professional \ Common7 \ IDE:

 <runtime> <loadFromRemoteSources enabled="true"/> </runtime> 
-one
source

Source: https://habr.com/ru/post/1399060/


All Articles