


Debugging is a vital part of the software development process.Debugging is an opportunity to understand your app better than you did before and hopefully sharpen your ability to write correct code in the future by programming defensively. Think of debugging as an opportunity to fill gaps in knowledge.This is contrast to compile-time errors which prevent an app from running and are often easier to catch. This class of issues are known as runtime errors. Just because a program runs, doesn’t mean it’s going to work as you expected.A few key principles about debugging are captured below: In addition, you'll often find yourself in the role of a coding investigator in order to understand where and why an app is crashing or not working as expected. Debugging MindsetĪs an Android developer, you'll need to cultivate a "debugging mindset" as well as build up defensive programming practices that make writing error-prone code less likely. Refer to our guide below and/or these debugging slides for more a detailed look at debugging crashes and investigating unexpected problems with your app. You know you have experienced a runtime exception when you see this in your emulator or device:ĭon't worry though! This is totally normal and there's a specific set of steps you can take to solve these. When building Android apps, your app is bound to crash from time to time or exhibit strange unexpected behavior.
