Eclipse doesn't stop at breakpoints

前端 未结 30 2316
忘了有多久
忘了有多久 2020-12-13 08:13

Eclipse 3.5.2 is not stopping in breakpoints. It\'s as if the debugger is using an older version of the source file.

Tried the usual refresh, clean all projects, bui

30条回答
  •  眼角桃花
    2020-12-13 08:54

    In my case I had to enable then disable an option in the Preferences. I don't prefer the debug view to keep jumping when a breakpoint is hit so I disabled this option, but caused the issue in question.

    The solution was to enable it again, start a debug session, the breakpoint is hit and shown in the UI, then disable again the option.

    Looks like a bug in Eclipse 4.17

    UPDATE

    There is also another simpler way that will make Eclipse show the debugging highlight at the breakpoint or rather refresh the debugging UI to work as it should. After the breakpoint is reached, Eclipse will ask you to switch to debugging mode if you are not already in, click switch button, then activate the debug tab/view, you will notice that the stepping buttons are activated and the breakpoint line is highlighted.

提交回复
热议问题