The Debug Perspective

Although LogCat is very useful for watching log messages, you'll definitely want to have more control and more information about your application as it runs. Debugging in Eclipse is fairly easy and also described in detail in many places on the Internet. As such, we're not going to go into great detail here but will list some of the useful features you get:

  • Setting breakpoints in your code so execution stops there when the application runs
  • Inspecting variables
  • Stepping over and into lines of code
  • Attaching the debugger to an application that's already running
  • Disconnecting from an application you were attached to
  • Viewing stack traces
  • Viewing a list of threads
  • Viewing LogCat

Figure 11–1. shows a sample screen layout of ...

Get Pro Android 4 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.