Reputation: 57
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.
Upvotes: 6
Views: 3517
Reputation: 274562
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.
Upvotes: 1
Reputation: 5735
Please make sure you are using JDK not JRE in build path of your project.
Upvotes: 7