I've been using Eclipse for ages and I use the debugger all the time but recently I've known it to skip over breakpoints while debugging! I've even had it so that I've set a break point on a println I'll see the text come out but not hit the breakpoint. Also sometimes I'll hit a break point consistently in one area of the code but not in others. This never used to happen and I can't work out what I've done to my system to cause this. Has anyone else had any experience of the problem?
+1
A:
Ahaha,
I've found the solution eventually after a long web trawl. I'm not sure why this happens but other people have seen the problem too and
Window -> Preferences -> Java -> Installed JRE's -> (edit your currently used JRE) -> Edit "Default VM Arguments" box and enter (w/o questionmarks) "-XX:+UseParallelGC"
Generally fixes the problem...
Benj
2009-11-05 11:12:59
+2
A:
What you mention ("-XX:+UseParallelGC
") is a workaround for the bug found with jdk6u14 and 15.
As mentionned in "Eclipse SWING app: breakpoint hit only after an uncaught exception is thrown", it is fixed with jdk6u16.
VonC
2009-11-05 11:17:23
Ahah, thanks for that. I'm actually using JRE 6.0_15 but I guess it's the JRE which is the issue really. Also I'm not using swing but SWT however I guess the problem is actually core java related rather than related to a specific windowing toolkit.
Benj
2009-11-05 11:21:25