Eclipse doesn't stop at breakpoints

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

    A different solution worked for me. I also faced the same problem - debug points were not being updated, though they are shown correctly in the IDE editor and in Break Points tab.

    My problem and solution are: While creating the project, the 'Default Output Folder' points to different location. At a later stage, I have mavenized the project, selecting "Project Right Click - Configure - Convert to Maven Project". So there are two sets of output folders exist in my project file system. Cleaning the project multiple times did not solve my problem. In the background it was pointing to different binary files. Finally, when I removed the Maven Feature and cleaned the project, this time everything worked fine. Env: Eclipse Juno and JRE is J2SDK 1.5.

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

    I get all breakpoints skipped and marked as warnings when using -O2 in the compiler flags. Switched to -O0 -g in my makefile and breakpoints now work. Hope this helps.

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

    I had the same problem, and I found the real cause.

    I had written some concurrent / multi-threads code, while I added some breakpoints inside the code running in a new thread. So, when JUnit tests ran over, and stopped soon, the code will not reach and stop at the breakpoints.

    For this situation, we have to click and select "Keep JUnit running after a test run when debugging" check box at "Debug Configurations..."

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

    Make sure, that you are using the correct JRE version to debug your project. Especially if it's a third party project.

    Also make sure, that there is no trigger point set for any breakpoint.

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

    One reason for this situation can be, that you have pressed 'skip all breakpoints', when play- and another pictures are smaller than those normally are (because of higher resolution screen). Another thing can be, that break points are stopped only under VM threads, not under normal threads!

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

    In my case the debugged code in JBoss was older than the code in the Eclipse project. Rebuilding the .war solved the problem.

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