Eclipse doesn't stop at breakpoints

前端 未结 30 2303
忘了有多久
忘了有多久 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条回答
  •  萌比男神i
    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..."

提交回复
热议问题