(Android Studio) How to debug through my code only?

一个人想着一个人 提交于 2019-11-28 03:27:22

Go to Android Studio > Preferences > Debugger > Stepping then in the bottom click the plus arrow with the question mark that says Add Pattern. Type android.* and hit OK and then Apply.

In Android Studio 2.0 select File > Settings > Build, Execution, Deployment > Debugger > Stepping. Then click the "Add Pattern"

button on the right. Type android.* (or whatever pattern you want to exclude) and click "OK" twice.

In addition to Adam Johns's answer for ignoring the Android libraries, you can use the "Step Over" button (F8) to step over a method call the details of which you're not interested in, such as from any other library you import.

Use f9 (Resume Program). This will Resume your Program and stop only to the next Break Point.

In Android 2.3.1 Go to Android Studio > Preferences > Debugger > Stepping then in the bottom click the plus arrow icon which has dot,star and question mark which is Add Pattern. Type android.* and com.android.* and click OK and Apply.

Shift-F11 to step out of the method helps too.

1. Add Custom Pattern

Android Studio 3.x.x

Android Studio > File > Settings > Build,Execution,Deployment > Debugger > Stepping

2. Step Over(F8)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!