© Ted Hagos 2022
T. HagosBeginning IntelliJ IDEAhttps://doi.org/10.1007/978-1-4842-7446-0_9

9. Debugging

Ted Hagos1  
(1)
Makati, Philippines
 
In this chapter, we will cover the following:
  • Errors that you’ll most likely encounter

  • Logging debug statements

  • Using the debugger

Most (if not all) programs will have errors — I’m talking about the nontrivial programs here, not the “Hello World” kind. Dealing with errors will be a big part of your occupation as a developer. In this chapter, we’ll talk about the kinds of errors you will most likely face and how to use IntelliJ to deal with some of these errors.

Types of Errors

Generally, these are the kinds of errors you’ll run into:
  • Syntax errors

  • Runtime errors

  • Logic errors

Syntax Errors

Syntax errors are exactly what ...

Get Beginning IntelliJ IDEA: Integrated Development Environment for Java Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.