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
网友评论