Chapter 19
Comprehensive Debugging
In This Chapter
• Logging messages with LogCat
• Debugging code in Eclipse
• Using the debug and DDMS perspectives
• Analyzing execution data with Traceview
If you have ever written a research paper, a company memo, or just an e-mail to a friend, you have probably thanked your spell-checker for catching the mistake with “thier,” corrected to “their” and only later discovered you really intended “there.” Just like your word processor, Eclipse catches your syntax and spelling errors. In the same way, just because your app compiles and runs, it does not mean you have not written a bug.
Unlike humans who can mentally “fix” language as they hear it, apps see a mistake and fail or worse—they do something completely ...

Get The Complete Idiot's Guide to Android App Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.