[转]eclipse调试:关联源码

Android项目关联其他工程,无法进行源码级别的调试,提示:The Jar of this class file belongs to container ‘Android Dependencies’ which does not allow modifications to source attachments on its entries

解决办法:

去Debug视图下,右击线程,选择:

debug-mode-right-click-thread-edit-source-lookup_thumb.png

然后去添加:

Default->Add->Java Project

edit-the-source-lookup-path-default-add-java-project-ok_thumb.png
choose-related-source-code-project-then-ok_thumb.png
added-usb-serial-project-then-ok_thumb.png

然后需要注意的是:

当前Class File Editor界面中,并不会变化,还是不能同步看到源码。

但是:

继续调试,或者说,重新调试,再去单步F5执行的话,就可以看到源码了:

then-redo-debug-f5-can-into-source-code-for-usb-serial-prober_thumb.png

转自:
【已解决】Android的ADT调试期间出现提示:The Jar of this class file belongs to container ‘Android Dependencies’ which does not allow modifications to source attachments on its entries

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容