Saturday, October 24, 2009

Eclipse debugging does not stop at breakpoint

I have been experiencing this issue in many earlier versions of Eclipse (3.3, 3.4) and also in current version (3.5 Galileo). Till a point, the eclipse debugger stops at breakpoint but after that it does not stop. There has been no pattern for this. Earlier I thought that this behaviour was due to certain code that involves creating java classes and jar at runtime or probably running ant script at runtime. However then I noticed that there is no pattern for this and it can happen on any code. However I have seen that this occurs only on debugging large code.

Steps to fix

Open the Debug configuration window for the java class youa re debugging and specify the following in JVM arguments text area

-XX:+UseParallelGC

References:

http://ubuntuforums.org/showthread.php?t=1147960