Xamarin: Unable to Debug Android Application


Using Visual Studio 2017 and opening small Xamarin forms application, building then debug-run I get the following error in the output window.  This occurred while using the Visual Studio Android emulator.

“Android application is debugging.
Could not connect to the debugger.”


The solution was to open Hyper-V Manager, find the emulator (ensure that the emulator is shutdown), Settings – Processor then select ‘Migrate to a physical computer…’


While this seemed like the complete solution it wasn’t.  One of my projects I could debug while the other one I could not.  I compared the two csproj files and found this difference.



Once I set my project option to <DebugSymbols>True</DebugSymbols> it worked and I could F5 Debug the solution/project.


Reference: https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/debug-on-emulator/visual-studio-android-emulator/#Troubleshooting




comments powered by Disqus


Recent Tweets

Retweeted by @dyardy Hey C# peeps, we’re trying C# in browser with reference content. Try it here: docs.microsoft.com/dotnet/csharp/… reply with feedback /cc @LadyNaggaga
23 Amazing Vintage Photographs Taken Inside WWII Tank Factories ~ vintage everyday vintag.es/2017/10/23-ama…
When is AI NOT Search? Artificiality intelligence==Search Engine (there cases when this is not true)
@projectedxyz Large data vs big data? Industry has so misused buzz words to sell products, and so you end up nothi… twitter.com/i/web/status/9…