© Ted Hagos 2020
T. HagosLearn Android Studio 4https://doi.org/10.1007/978-1-4842-5937-5_12

12. Debugging

Ted Hagos1 
(1)
Manila, National Capital Region, Philippines
 
What we’ll cover:
  • Kinds of errors you’ll encounter

  • Logging debug statements

  • Using the debugger

All but the most trivial programs are without errors. Dealing with errors will be a big part of your life as a developer. This chapter will discuss the kinds of errors you’ve faced and will still face in the foreseeable future. We will also discuss how you can use Android Studio to ease the difficulty of dealing with these errors.

Types of Errors

The three most common errors you’ll face in programming are
  • Syntax errors

  • Runtime errors

  • Logic errors

Syntax Errors

Syntax errors are exactly what you think ...

Get Learn Android Studio 4: Efficient Java-Based Android Apps Development 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.