The debugging environment is one of the most important features of an IDE. Using a debugging tool allows you to easily optimize your application and improve its performance. Do you want to use a debug tool while programming in Android Studio? Android Studio includes the Dalvik Debug Monitor Server (DDMS) debugging tool.
In this chapter, you will start by learning about the run and debug options and how to emulate your application in one of the Android virtual devices you learned to create in a previous chapter. You will learn about the Debugger, Console, and LogCat tabs in depth. You will also learn how to use breakpoints when using the debugger. We will end this chapter with information about each tab available in the advanced debugger tool included in Android Studio DDMS and the Hierarchy View.
These are the topics we'll be covering in this chapter:
Debugging
LogCat
Instant run
Device Monitor tools
Hierarchy View