You can step through a Robot program in Eclipse using the debug mode and break points. See:
http://wpilib.screenstepslive.com/s/...-robot-program
Be very, very careful when debugging code that involves movement. You may need to unplug motors or at a minimum make sure your robot is up on blocks.