Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio can't debug Android Xamarin app

I've started with Xamarin and Android using Visual Studio 2013.

When I start debugging the android app, it builds, deploys to device and then debugging in Visual Studio stops. I can't hit any breakpoint. App is working in device, but I cannot debug it. Am I missing something? I've tried various emulators and a physical android device but debugging doesn't work in any of them. It just act like I have stopped it.

Debugging the same solution in Xamarin Studio works, I just can't get it working in Visual Studio.

like image 740
Maarty Avatar asked Sep 16 '15 20:09

Maarty


People also ask

Is Xamarin deprecated Android?

In May 2020, Microsoft announced that Xamarin. Forms, a major component of its mobile app development framework, would be deprecated in November 2021 in favour of a new .


1 Answers

I was having the same problem and I found this workaround with Hyper-V in Xamarin's documentation: https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/debug-on-emulator/visual-studio-android-emulator/

TL;DR; Open Hyper-V Manager -> Go to settings on your emulator -> Go to processor settings -> Select Compatibility -> Mark the "Migrate to a physical computer with a different processor version" checkbox -> Done! (At least for me) VS is now debugging my Android App

like image 99
Jorge Cupi Avatar answered Sep 25 '22 18:09

Jorge Cupi