Catching and Debugging Errors

Abstract

As you develop Windows Phone applications, you must learn how to equip them to handle a number of exceptions that are unique to smartphones. Unlike a desktop computer, a Windows Phone includes devices over which you have little direct control, including GPS, an accelerometer, Wi-Fi, isolated storage, and a radio. A user can decide to turn off an onboard device to save power at any time. Isolated storage can run out of space. A resource, such as a cell tower, GPS satellite, or Wi-Fi router, might not be available. To identify and fix unexpected exceptions in an application, you need to know how to use the powerful debugging facilities of Visual Studio. To be sure that you have dealt with all of the bugs in your application, you need to know how to test it on a real device.