Colorado State University

Recitation R20 - Eclipse Debugging, Start P6
Spring 2014

CS160: Foundations in Programming


The purpose of this lab is to:

PART A - Getting started on P6


See the P6 assignment on the Progress tab on the course website for instructions. Your TA will make sure you have P6 setup, and help will be available for questions related to P6.

PART B - Debugging With Eclipse

Download the Debugging.java into your R20 source folder, and open it in Eclipse.
The TA will explain the following debug commands: Spend the rest of the time fixing the 4 errors in Debugging.java. Set breakpoints earlier in the code so that you can explore the behavior of the program before it breaks, and hone in on the problematic code. Remember that not all errors break the program, and some are more subtle than others. The TA will discuss how to examine data, another useful debugging feature.

To go back to the regular Java perspective, go to the menu dropdown Window -> Open Perspective -> Java
Show your fixed Debugging.java program to the TA for grading and to get credit for this portion of the lab.

© 2014 CS160 Colorado State University. All Rights Reserved.