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源碼作爲關聯