I am using the eclipse3.4.6 and I have attached the src.zip to eclipse. I can successfully view the source code eclipse, but the breakpoint set in java core class dosn't work; for example.
HashMap test = new HashMap();
test.put("a", 0);
I can't step into test.put("a", 0) even if I set a breakpoint in HashMap.class at the begenning of 'put' method.
Thanks in advance.
Please make sure you are using JDK not JRE in build path of your project.
I think you might be setting a "line breakpoint" which Eclipse isn't able to map to the right line possible because the source you are looking at is not exactly the same as that of the class that is running.
Try setting a "method breakpoint" instead. Open the HashMap
class and in the Outline view, right click the put
method and select Toggle Method Breakpoint.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With