Debugging on devices
As we have seen earlier in this chapter, we can easily run our app as a universal windows platform (UWP) or through an emulator of each existing device’s OS. Debugging a .NET MAUI app directly on a device using Visual Studio involves several steps. This process allows us to test our app on a real device, which can be particularly useful for testing features that require specific hardware capabilities, or for performance testing.
In this section, we will follow a step-by-step guide on how to do debugging on a device.
Enabling Developer Mode on our device
To debug your MAUI application on a device, it’s essential to first activate Developer Mode. However, the steps to do this differ, based on the device’s OS.
Let’s look at the steps to enable Developer Mode on Windows, Android, and iOS devices:
- For Windows devices: Go to Settings | Update and Security | For Developers and select Developer Mode.
- For Android devices...