I have an Eclipse (java) project which stops at non-existent breakpoints. There was a breakpoint at this location at one time, but I removed it. Any ideas why this would be happening?
Note: It is not the same issue mentioned here - phantom breakpoint driving me crazy!
If you are sure that there aren't breakpoints (Run > Remove All Breakpoints), then there are 2 things to consider:
- You are misunderstanding something of how the debugger works.
- Your program is stopped because it's waiting for some input.
I have suffered this. To fix it, just goto Run->Remove All Breakpoints in the menu. It will remove it.
Later you can redefine your required breakpoints again.
I had same issue, I am using eclipse Mars. In my case I fixed it differently.
Steps:
I opened breakpoint tab (you will see this if you are in debug perspective)
I saw there were two breakpoints enabled for the same line of code one of them was already unchecked but another was checked
I unchecked it and now it does not stop anymore.
Eclipse possibly stops because of an uncaught exception. To fix this:
- handle the exception
- Preferences -> Java -> Debug > Suspend execution on uncaught exceptions (in this menu there are more settings to suspend execution!)
I got this information from:
https://stackoverflow.com/a/723313/944440
If it happens on the first line, then it should be a Debugger setting. This thread should help: Prevent xdebug to break at first line of index file
But in short:
- "Windows -> Preferences -> PHP (or Java in this case) -> Debug" and uncheck "Break at first line".
- "Run > Debug Configurations > PHP Web Application (or Java in this case)" and unselect "Break at first line" in all the configurations
- "Project > Properties > PHP > Debug", unselect "Break at First Line"