第一行断点只能工作 [英] The first line breakpoint works only

查看:167
本文介绍了第一行断点只能工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Android Studio开发(我已经使用了IntelliJ IDEA + SDK)
我遇到了调试问题。我所有的断点都不适用于所有项目。
排除是方法
的第一行的断点,例如:
第1行的断点工作,第2行不是
断点的提示告诉这个行没有找到源。看起来proguard已经启用,但没有。



我已经尝试创建新的空项目(Gradle)。这也不行。
有什么想法吗?

解决方案

我已经解决了这个问题。我正在一个真正的设备上运行调试(Nexus 4与Android 4.4 KitKat)。而且我已经在设备上启用了 ART而不是Dalvik 。当我切换回达尔维克时,所有断点开始工作。


I am developing in Android Studio (i've used IntelliJ IDEA + SDK) I've encountered debugging problem. All my breakpoints don't work in all projects. Exclusion is the breakpoint on the first line of a method for example: Breakpoint on line 1 works, on line 2 doesn't breakpoint's Hint tells that no sources found for this line. It seems like proguard is enabled, but it doesn't.

I have tried create new empty project (Gradle). It is also not working. Have You any idea?

解决方案

I've solved the problem. I was running debugging on a real device (Nexus 4 with Android 4.4 KitKat). And I' have enabled ART instead Dalvik on the device. All breakpoint start to work when i've switched back to Dalvik.

这篇关于第一行断点只能工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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