How to "Step Into" or "Step Over" code while debugging an app in Android Studio?
I am trying to follow this Debugging with Android Studio.
How do I Step Into or Step Over code?
Under the variables tab in debugger it just shows:
"Connected to the target VM, address: 'localhost:8609',transport:'socket'"
The "Step Into", "Step Over" options are greyed out.
Do I pause execution and then Step Into or Step Over my code?
By default, step over is F8, step into is F7.
You need for your code to reach your breakpoint, then all debugging options should be available.
My guess is that right now your code is still running in debug mode.
So either you'll have to set a better breakpoint or you'll have to advance your code to the current breakpoint.
Then, the next line to execute will no longer be "Breakpoint Red",
but instead be "Debug Blue" like if (square.getTag() == tag)
is below:
Yours is still "Breakpoint Red":
You can then also use the following keyboard short cuts: