简体   繁体   English

Galaxy S5 Lollipop - 并非所有断点都停止在Android Studio调试器下执行

[英]Galaxy S5 Lollipop - not all breakpoints stop execution under Android Studio debugger

After upgrading Samsung Galaxy S5 SM-G900F to Lollipop (Android 5.0) I noticed strange behavior: 将三星Galaxy S5 SM-G900F升级到Lollipop(Android 5.0)后,我注意到了一些奇怪的行为:

not all breakpoints are being caught within Android Studio. 并非所有断点都在Android Studio中被捕获。

Here is environment description and my observations 这是环境描述和我的观察

  • Windows 8.1 x64 Windows 8.1 x64
  • Android Studio 1.0.2 with SDK Tools 24.0.2 带有SDK工具24.0.2的Android Studio 1.0.2
  • Sun jdk1.7.0_55 太阳jdk1.7.0_55
  • under SDK emulator all breakpoints are caught 在SDK模拟器下,捕获所有断点
  • under Genymotion all breakpoints are caught 在Genymotion下,所有断点都被捕获
  • under Galaxy S3 with 4.4.4 all breakpoints are caught 在带有4.4.4的Galaxy S3下,所有断点都被捕获
  • under Galaxy S5 SM-G900F with 5.0 not all exceptions are caught 根据Galaxy S5 SM-G900F 5.0 并非所有异常都被捕获

I tried rebooting phone, rebooting dev machine, turning on/off debugging in dev options, using USB drivers from Samsung and Google, invalidating cache in Android Studio, doing full clear and rebuild and so on. 我尝试重启电话,重新启动开发机器,在开发选项中打开/关闭调试,使用三星和谷歌的USB驱动程序,在Android Studio中使缓存无效,完全清除和重建等等。

Breakpoints that work have ticks inside red icons. 有效的断点在红色图标内有刻度。 I don't know the rule, which classes do have working breakpoints and which don't. 我不知道规则,哪些类确实有工作断点,哪些没有。

The same thing happens with this device on three different devboxes. 这个设备在三个不同的devbox上也会发生同样的事情。

来自Android Studio的截图

Help! 救命!

Last update of Samsung S5 this week solves the problem with Eclipse IDE. 本周三星S5的最新更新解决了Eclipse IDE的问题。 Android French version G900FXXU1BOC7 Android法语版G900FXXU1BOC7

I found this out: Breakpoints don't work on allocations in some versions of Android. 我发现了这一点:在某些Android版本中,断点不适用于分配。 An allocation (second image) isn't executable code but the Fabric init code is, so it can break at that point. 分配(第二个图像)不是可执行代码,而是Fabric init代码,因此它可以在那时中断。 It seems to be a sort of check if the code is executable or not. 它似乎是一种检查代码是否可执行的检查。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM