Chapter 4. Catching Errors, Testing, and Debugging

In this Chapter:

Connecting to a Target 143

Compile-Time Errors 150

Exception Handling: Same as the Full .NET Framework 153

Runtime Exceptions 156

Global Exception Handling 167

Some Exceptions Worthy of Further Mention 171

The Log Files 176

Instrumentation 180

Unit Testing 186

This chapter discusses how to connect to an emulator or real device so that you can debug your code during development. You learn what kind of errors can occur at run time and how you should code your applications to trap and respond to exceptions. You also learn about the different log files that the Microsoft .NET Compact Framework runtime can generate and how you can use them to diagnose specific problems, and you learn about instrumentation—how ...

Get Microsoft® Mobile Development Handbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.