[轉(zhuǎn)]eclipse調(diào)試:關(guān)聯(lián)源碼

Android項(xiàng)目關(guān)聯(lián)其他工程,無法進(jìn)行源碼級(jí)別的調(diào)試,提示: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

然后需要注意的是:

當(dāng)前Class File Editor界面中,并不會(huì)變化,還是不能同步看到源碼。

但是:

繼續(xù)調(diào)試,或者說,重新調(diào)試,再去單步F5執(zhí)行的話,就可以看到源碼了:

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

轉(zhuǎn)自:
【已解決】Android的ADT調(diào)試期間出現(xiàn)提示:The Jar of this class file belongs to container ‘Android Dependencies’ which does not allow modifications to source attachments on its entries

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容