I'm trying to debug into the JDK source files. To be more specific, I'm interested in studying the internal implementation of the Collection classes.
So I have created a Simple Java Project, added some sample code like this one:
import java.util.HashMap;
import java.util.Map;
public class HashMapWorking {
public static void main(String[] args) {
Map<String, String> demoMap = new HashMap<>();
demoMap.put("one", "first");
demoMap.put("two", "second");
demoMap.put("three", "third");
}
}
I need to know, for example, what happens when I call the demoMap.put() method.
I have added the source archive using the Edit Source Lookup Path dialog:
Now my problem is that when I debug into the put() method in the java.util.HashMap class, the Variables tab doesn't list out its member variables. Instead I just get to see the arguments being passed to the respective methods:
The local variables withing methods aren't captured either
What can I do to be able to debug through the java source the way I could debug into any other source classes?
I tried referencing the src.zip as well as the extracted version of src.zip in the Edit Source Lookup Path dialog, neither of them worked.
Kindly advise.


arg0instead ofkey. Independent of that, you have to Step Into to see what you want.keyinstead ofarg0will be shown. To see the local variables within the method" you have to Step Into as it has been stopped before the line in which the variable was first used. The member variables (fields) of the class are not shown for static methods because static stuff has no reference to an instance.