Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
Brian W. Kernighan
This chapter discusses debugging, troubleshooting, and analyzing your applications. This is one of the most important steps in application development and is often neglected. Testing an application doesn’t stop after all your unit tests pass. You need to make sure that the application runs smoothly and efficiently and, especially on mobile devices, that it isn’t abusing resources. Applications that abuse mobile device resources aren’t even going to be allowed into the Marketplace.
This chapter shows you how to debug ...