How to Debug in Android Studio?

后端 未结 3 1602
余生分开走
余生分开走 2020-12-30 08:50

How can I

  1. Set a breakpoint.
  2. Stop on Breakpoint.
  3. Release, but leave in debug mode. By release, I mean don\'t step to next line. Jump to next b
3条回答
  •  情书的邮戳
    2020-12-30 09:28

    Breakpoints are toggled 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 I could enter someVariable > someOtherVariable. Other options include suspending the whole app, or just the thread that encountered the breakpoint.

    Buttons going down the left

    • Resume
    • Pause
    • Stop
    • View breakpoints
    • Mute breakpoints

    Buttons across the top

    • Show execution point
    • Step over
    • Step into
    • Force step into
    • Step out

提交回复
热议问题