Print Page Print Page

Appendix C – Debugging

Summary

In this chapter you learn about the different error types you will encounter when developing Java programs. Namely, compile-time errors, run-time errors, and logic errors are all covered in this chapter. You also learn strategies for resolving each error type.

Although this appendix doesn’t explicitly cover stepping through your code, here you will perform specific exercises to help you more easily debug your code. Each exercise starts with a command-line example followed by DrJava example. An exercise using Eclipse is presented as a final exercise.

Try This – Step by Step
  • Compile-Time Errors
  • Run-Time Errors
  • Logic Errors
  • Debugging Using Eclipse
Supplementary Videos