搭建JDK源碼閱讀環境相關問題

Debug出現內存資源不足

  • 進入preference -> Build, Execution, Deployment -> Compiler -> Builder process heap size(Mbytes)
  • 將值調大至1024或者更大

Debug調試無法進入源碼底層

  • 進入preference -> Build, Execution, Deployment -> Debugger -> Stepping -> Java
  • 取消勾選 Do not step into classes

源碼爲只讀狀態無法添加註釋

  • 進入 File -> Project Structure -> SDKs -> 1.8 -> Sourcepath
  • 刪除關聯的 /Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home/src.zip
  • 添加自身項目的JDK源碼作爲關聯
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章