Eclipse doesn't stop at breakpoints

前端 未结 30 2185
忘了有多久
忘了有多久 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:33

    switching workspace worked for me. Go to File > Switch Workspace and choose different folder (workspace) That's it and BINGO! Debugging started working for me as beautiful as before.

    0 讨论(0)
  • 2020-12-13 08:33

    Since Eclipse 4.7/Oxygen released in June 2017, there is a new concept of "Triggers for breakpoints", which is displayed as a small "T" next to the breakpoint "blue bullet" icon.

    All the other breakpoints that are initially suppressed by triggers will be hit only after any of the trigger points has been hit. All the triggers are disabled after a trigger point is hit and will be re-enabled after the run.

    In order to reset all the "trigger" flags, you need to do the following steps :

    1. Switch to Debug perspective.
    2. Right-click in the "Breakpoints" view
    3. Select "Remove All Triggers".

    Note : this step does not delete all your breakpoints, which occurs when selecting "Remove All" in the same contextual menu.

    Note : the keyboard shortcut to enable the triggers is "Alt-R", which takes precedence on the shortcut to open the "Run" menu with its mnemonics, when the "Breakpoints" view is selected.

    0 讨论(0)
  • 2020-12-13 08:35

    Breakpoints have seemed to work and not-work on the versions of Eclipse I've used the last couple years. Currently I'm using Juno and just experienced breakpoints-not-working again. The solutions above, although good ones, didn't work in my case.

    Here's what worked in my case:

    1. deleted the project

    2. check it back out from svn

    3. import it into Eclipse again

    4. run "mvn eclipse:eclipse"

    Since the project is also a Groovy/Http-bulder/junit-test project, I had to:

    1. convert the project from Java to Groovy

    2. add /src/test/groovy to the Java Build Path (Source folders on build path)

    3. include "**/*.groovy" on the Java Build Path for /src/test/groovy

    0 讨论(0)
  • 2020-12-13 08:36

    I had the same problem when I was using Eclipse Juno.. I installed Eclipse Indigo and it works fine. Try to reinstall eclipse.

    0 讨论(0)
  • 2020-12-13 08:37

    For me, updating gradle-wrapper.jar file worked.

    0 讨论(0)
  • 2020-12-13 08:38

    I had all breakpoints enabled and configured as I should. But whenever I clicked "debug" it would only step through the program (press f5/f6) Turns out there was a rogue setting

    Right Click project > debug configurations > "Debugger" tab > uncheck "Stop on startup at:" box

    0 讨论(0)
提交回复
热议问题