Why does my Eclipse project have phantom debugger breakpoints?

后端 未结 5 2097
既然无缘
既然无缘 2020-11-29 20:51

I\'ve got a small project which, when run in the Eclipse debugger, always seems to stop in FileInputStream.class line 106, where files are opened. There are no breakpoints

5条回答
  •  攒了一身酷
    2020-11-29 21:41

    I ran into an issue where a source file had persistent markers for breakpoints that didn't exist. I tried cleaning the project, doing a full build, restarting Eclipse - nothing worked.

    I went digging through the Eclipse metadata, and found the projects .markers file. Deleting that file finally fixed the issue.

    For anyone else having this issue, open your workspace directory, then navigate to .metadata/.plugins/org.eclipse.core.resources/.projects/your project, then rename/remove file .markers.

    For example, if your workspace folder is ~/workspace, and your project is named Foo, you could do:

    $ mv ~/workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/Foo/.markers ~/safe.Foo.markers
    

提交回复
热议问题