DEBUGGING
Introduction In all but the most simple programs, you will need to fix errors The Eclipse debugging tools help with this process You can Look at the values of variables Set breakpoints and watch program execution Use LogCat and the logging system to display informational messages And much more
The Debug Perspective A perspective is just a collection of different views Display the Debug perspective with Window, Perspective, Debug Display the DDMS perspective with Window, Perspective, DDMS Reset a perspective with Window, Reset Perspective
The Debug Perspective (Illustration)
LogCat LogCat displays a stack trace
The Debug Perspective (Breakpoints) Execution will be temporarily suspended at breakpoints
Setting Breakpoints Click in the left margin to set a breakpoint on an executable statement
Exception Breakpoints Control how exceptions are handled
The Debug Perspective (Variables) Examine the values of variables
The Debug Perspective (Debug) Examine the call stack