您的位置:首页 > 移动开发 > Android开发

无法在Android Studio中设置断点

2015-10-20 17:06 555 查看
有时候在android studio中设置了断点,但是当链接设备后,看到的却是一个带x的断点,

此时链接上手机,也是没法停在断点的,真是急人啊!!!

根据断点失败的提示:

[code][plain] view plaincopy
Warning: No executable code found at line 482 in class com.xx.xx.


开始搜索。

StackOverflow上有一篇解释,Cannot set Java breakpoint in Intellij IDEA

If you are using Maven dependencies, go to Maven Projects -> refresh

If that does not work, Try top menu –> Build –> Rebuild Project

If that still doesn’t work, try top menu –> File –> Invalidate Cache/Restart

If that still doesn’t work, then $CATALINA_BASE/bin/catalina.sh stop, then start

2和3两个步骤可以解决问题,其他两个应该Maven和Tomcat的,可以忽略
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: