Debug on Device
This article explains how to debug a Xamarin.Android application on a device.
Before you can use your device for debug, it must be set up for deployment and connected to your PC.
Before you can use your device for debug, it must be set up for deployment and connected to your Mac.
Once your device is connected to your computer, debugging a Xamarin.Android application is just like debugging a desktop application.
First, set your breakpoint as shown below:
Next, start debugging your application by pressing F5 in Visual Studio.
Next, start debugging your application by pressing ⌘ + Enter in Xamarin Studio.
When you do so, you may be prompted to choose the device you want to debug on, as shown in the following screenshot from Visual Studio:
Once the device has been selected, Xamarin.Android will connect to the device, deploy the application, and then run it. When the breakpoint is reached, the debugger will stop the application, allowing you to debug the application just like you would any other C# application. This is shown in the screenshot below:
In this document we discussed how to debug a Xamarin.Android application by setting a breakpoint and selecting the target device.