Debugging Program
In this chapter we will look at ways to find errors in our code, including the Eclipse Debugger.
Objectives¶
- Add System.out.println() statements in code to write data to the screen, for help in isolating bugs.
- Use the Eclipse Debugger to stop programs and examine variable values.
Topics¶
- What is Debugging?
- Commenting Out Code
- Manual Output in Code
- Making Debugging Print Statements Conditional
- Tools to Debug Programs
- Debugging in Eclipse
- The Debug Perspective
- Breakpoints
- Examining Variables
- Controlling Program Execution
- Labs