To enter into a debug mode you need to put at least 1 break point into your app code and after that you need to either run your code in debugger mode or attach a debugger with a running app on your emulator or device.
Once your app hit a breakpoint you will see a debugger window will popup like below
debugger mode
Basic commands include
Run over
Step into
Step out
Run to cursor
Show execution point
Let’s talk about some of the advance topics which will make your life easy and debugging will be fun.
Using this you can see values of all class level variable inside any object.
Once you click on inspect a new popup will open like below which will give you entire information about the object like values of all class variable etc.
Inspect popup window
here you can change some of the variable values(in Kotlin if a variable is declared as val
you can not change it’s value)
#android-app-development #kotlin #productivity #intellij #android-studio #android