Debugging into Java core libraries with Eclipse
Unzip the jdk src.zip file Create a project and build the java source Open the Eclipse project run dialog for the project you want to debug into the java source from Click on the Classpath tab Click on the Bootstrap Entries Click the Add Projects button Add the java source project Click on the Up/Down buttons to move the java source project above the JRE System Library (equivalent to -Xbootclasspath/p) Debug your project as normal and you will be able inspect variables as you step through the java core libraries Alter the java source to add instrumentation for things like recording last mutator thread stack trace of Collections for debugging and discovering the source of ConcurrentModificationException, etc.