Eclipse skips breakpoints when debugging java

I have been using Eclipse for ages and I have been using the debugger all the time, but recently I knew that it skips breakpoints during debugging! I even had this, so I set a breakpoint on println. I will see that the text came out, but did not hit the breakpoint. Also sometimes I hit the break point sequentially in one area of ​​the code, but not in the other. This has never happened, and I cannot understand what I did with my system to trigger this. Has anyone else experienced any problem?

+3
source share
3 answers

What you mention (" -XX:+UseParallelGC") is a workaround for the error detected by jdk6u14 and 15.

As mentioned in the "Eclipse SWING application: breakpoint only gets caught after an uncaught exception is thrown" , it is fixed with jdk6u16.

+3
source

Ahaha

I finally found a solution after a long spider web trawl. I'm not sure why this is happening, but other people also saw the problem and

Window → Settings → Java → Installed JRE → (edit the currently used JRE) → Change “Default VM Arguments” and enter (without question) “-XX: + UseParallelGC”

Usually fixes the problem ...

+2
source

I ran into the same problem. My solution is that you execute the project (Project-> Clean) and build it again (Project-> Build All or Project-> Build Project). After successful assembly, debug the project again. He will be well versed in the code (correctly).

+2
source

Source: https://habr.com/ru/post/1721972/


All Articles