Friday, October 02, 2009

JUnit breakpoints skipping in Eclipse debug mode

Sometimes when running a JUnit test case in Eclipse, my breakpoints are all being skipped. Most annoying.

I am using Eclipse Galileo 3.5.0 with JDK 1.6.0_14.

Workaround is to use the following VM argument: -XX:+UseParallelGC. The fix is to upgrade to a later JDK, currently JDK 1.6.0_14. Both methods fixed this issue for me.

Here is the Eclipse bug report for this error and the Stack Overflow report on this issue.