2 Minutes To Code (β Version)

Debugging with Eclipse - 2 minute tutorial

Analysing java app/classes when breakpoint is hit

In the image below, check that the breakpoint is set at line number 21 of Workshop.java class.

As soon as it is hit, the breakpoint symbol is marked with arrow in the bottom pane(highlighted in image).

Also, the program execution is suspended at line number 21 of Workshop.java (this line of code is not executed). Now you can use the step-in, step-out and step-over buttons in top-left (highlighted in image) to walk through and execute code one line at a time. While stepping through code thus, use the Variables view on top-right (highlighted in image) to see the change in variables and thus zero-in on the issue in your app.