How to debug in Android Studio?

How can I

  • Set a breakpoint.
  • Stop breakpoint.
  • Release, but leave in debug mode. According to the version, I mean, do not go to the next line. Go to the next breakpoint. Or just wait until the breakpoint hits.

I have no time or desire to dive into the SDK classes. I just want after I made a few lines. So far, the only thing I could do was just kill the debugging session. Where does the RELEASE button just move?

I mean, this is just obvious. You do not want to go deep and go deep into the code. After you finish the search, just go back to debug mode. Wait until you click another breakpoint. How can I do it? It can be done? And where is there no button for this?

Just come back, stay in debug mode. How do you do this?

+4
source share
2 answers

The top left button in the debug window (green triangle) does what you want. "Renewal Program (F9)"

+3
source

Breakpoints are switched by clicking in the narrow column to the left of the code. You can also have conditional breakpoints, for example, by right-clicking the red spot that I could enter someVariable > someOtherVariable. Other options include pausing the entire application or just a thread that encountered a breakpoint. enter image description here

Buttons going to the left

  • Summary
  • Pause
  • Stop
  • View breakpoints
  • Disable Breakpoints

Buttons at the top

debugger

+2

Source: https://habr.com/ru/post/1609919/


All Articles