How to Debug in Android Studio?

后端 未结 3 1481
余生分开走
余生分开走 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:11

    The top left button in the debug window (the green triangle) is doing what you want. "Resume Program (F9)"

    0 讨论(0)
  • 2020-12-30 09:23

    you should do the followings to enable the debugger option - https://developer.android.com/studio/debug

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题