Step through JDK source code in IntelliJ IDEA

后端 未结 7 2248
梦谈多话
梦谈多话 2020-11-27 15:43

How can I step through JDK source code in IntelliJ IDEA 7 and see the debug info? I can currently hit breakpoints and step through the code, but the debug info is not avail

7条回答
  •  佛祖请我去吃肉
    2020-11-27 16:39

    1. Install the JDK
      • OSX download: https://developer.apple.com/downloads
      • Windows download: http://www.oracle.com/technetwork/java/javase/downloads
    2. Add src.jar path
      1. Go to: Project Structure (Project Settings) > Platform Settings > SDKs > Sourcepath
      2. Add the path to src.jar
        • OSX example: /Library/Java/JavaVirtualMachines/1.6.0_45-b06-451.jdk/Contents/Home
        • Windows example: C:\Program Files\Java\jdk1.7.0_03 (check Program (x86) for 32-bit)
      3. Wait a long time for indexing!
    3. Remove debugger filter
      1. Go to: Settings > Debugger > Stepping
      2. Uncheck the package(s) you want, e.g. javax.*

提交回复
热议问题