android 调试器不会在断点处停止 [英] android debugger does not stop at breakpoints

查看:37
本文介绍了android 调试器不会在断点处停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在控制台中看到调试语句,但调试器不会在任何断点处停止.我尝试清除所有断点并重新添加它们.不确定这是怎么发生的,但确实如此.

I am seeing debug statements in the console but the debugger does not stop on any breakpoints. I tried clearing all breakpoints and adding them back in. Not sure how this can happen but it is.

推荐答案

您是否在 AndroidManifest 中设置了可调试标志?如果您错过了,请通过在应用程序标签中添加 android:debuggable="true" 来实现.最后应该是这样的:

Have you set the debuggable flag in the AndroidManifest? If you miss that, do so by adding android:debuggable="true" in the application tag. It should look like that in the end:

<application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true">

这篇关于android 调试器不会在断点处停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆