简体   繁体   English

安卓工作室。 如何仅通过我的代码进行调试?

[英]Android Studio. How to debug through my code only?

I mean how to avoid stepping through system methods.我的意思是如何避免单步执行系统方法。 There is an answer here有一个答案在这里

It is written:这个已经写完了:

Go to Android Studio > Preferences > Debugger > Stepping then in the bottom click the plus arrow with the question mark that says Add Pattern.转到 Android Studio > Preferences > Debugger > Stepping 然后在底部单击带有问号的加号箭头,上面写着添加模式。 Type android.* and hit OK and then Apply.输入 android.* 并点击 OK 然后应用。

But I can't find preferences in Android Studio.但是我在 Android Studio 中找不到首选项。 There is settings.有设置。 There are debugger settings in there.那里有调试器设置。 But there is no stepping settings.但是没有步进设置。 Can someone kindly point me to stepping settings?有人可以指出我的步进设置吗? Thanks!谢谢!

I found it in Settings > Build, Execution, Deployment -> Debugger -> Stepping我在设置>构建、执行、部署->调试器->步进中找到它

And find "Do not step into the classes".并找到“不要进入课堂”。

Android studio 1.4.1安卓工作室 1.4.1

Simply Just use 'f9' (Resume Program).只需使用'f9'(恢复程序)。

This will Resume your program Normally and will stop only if there is a Break Point.这将正常恢复您的程序,并且只有在出现断点时才会停止。

Hope this helps you.希望这对你有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Android Studio 中仅调试我的代码 - How can Debug Only my Code in Android Studio 我无法在Android Studio中调试。我的服务永远不会附加到VM,也不会在断点上停止 - I cannot debug in Android Studio. My service never attaches to VM and never stops on breakpoints 我的计算器应用程序的 java 代码是在 android studio 中制作的。 它崩溃了 - java code of my calculator app made in android studio. It got crashed 如何在 Android Studio 中获取复选框的状态。 - How to get the status of a checkbox in Android Studio. 在android studio中只调试JAVA代码 - debug only JAVA code in android studio 如何在Android Studio中安全删除项目? - How to delete a project safely in android studio.? 如何将数据库驱动程序连接到android studio。? - How to connect Database driver to android studio.? 如何使用Android Studio的Android监视器手动停止重复警报(无代码)。 - How to stop a repeating alarm manually(without code) using android monitor of android studio. 如何知道来电是在哪个sim卡中在我的android应用中,android studio。 - how to know on which sim the incoming call is in my android app, in android studio. 如何在android studio中创建数据库。 因为我写的代码不是在 ddms 中创建数据库 - How to create database in android studio. as the code i wrote is not creating database in ddms
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM