

A more detailed view should suddenly open and let you select Log message to console. Then right-click on the red dot of the breakpoint and deselect the Suspend checkbox. Go to the line you want to log and add a breakpoint. So what if I told you that you can have all of this for free without recompiling and rerunning the app every time? But it’s a boring and tedious process, and every time a new log is required, the app needs to be compiled again. Log, Log, LogĪ common operation for understanding the code flow and detecting any discrepancies that may be the cause of a bug is to add some log lines and recompile your project while watching the outcome in the Logcat tab of Android Studio.

This blog post will show some advanced features in Android Studio that will help you debug your application faster, in real time, thereby cutting down on the work and avoiding the need to recompile.

You took all the precautions - you did TDD, code review, pair programming, and manual testing - but in the end, it’s the same old story: there’s a bug, and you have to start debugging to track it down and fix it. It sometimes happens that even when you come up with all possible countermeasures, your software has bugs. Then programming must be the process of putting them in. If debugging is the process of removing software bugs,
