did you try to un-select
window > preferences > java > debug : suspend execution on uncaught exceptions
? (as mentioned in this thread, for instance)
why does eclipse work that way?
it goes back to 2002, when the breakpoint object hierarchy has been stripped down.
in order to set a breakpoint, with the old api, a client required java model objects - such as
with the new api, all that is required by the debug model is type names, field names, etc.
this allows clients to set breakpoints when java model objects are not available.
clients now specify the resource to associate a breakpoint with (before we constrained it to the associated java model resources).
breakpoints can now also be "hidden". that is, they need not be registered with the breakpoint manager.
breakpoints can also be selectively persisted (markers only allowed all/none of a marker type to be persisted).
this makes the debug model more flexible, and gives clients more building blocks.
this has also simplified some part of our java debug implementation - for example, the feature "
suspend on any uncaught exception", simply sets a breakpoint for the type named "
java.lang.throwable", rather than a specific
itypein a specific project.
the breakpoint is not registered with the breakpoint manager (i.e. hidden) - it is only known and used by one client.
another example is the "
run to line breakpoint". the
ijavaruntolinebreakpointhas been removed, as its special functionality is no longer required. now, the java debug ui simply creates a "line breakpoint" that is hidden, non persisted, and has a hit count of 1. this is an example of providing building blocks to clients.
for those who didn't find a solution from the previous answers, they can try what solved my problem. it is i think similar to hal9000 problem/solution
if you have two classes with the same name (in two different projects) the breakpoints on the one, apply on the other one as well. both of them show in the "breakpoints" window.
solution: if you remove the breakpoint from the class - with the same name - that you are not using it removes the breakpoint from the class you are debugging.
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
for those who don't find other solutions useful, i found my personal solution to my problem. i work with a .jar library which is generated by building another project into the workspace. if i set a breakpoint in a .java into the library project, then the breakpoint will be triggered when debugging the final project. however when debugger pauses the execution the .class file is shown which has its own breakpoints and therefore the breakpoint set into the .java file is not shown here!
solution: in order to remove the breakpoint you have to remove the breakpoint into the .java file, in the library project.
i had a similar problem but the accepted solution did not work for me. i am doing eclipse android development and had set some breakpoints and later unset them. even though i disabled them eclipse kept stopping execution at these phantom breakpoints. the solution for me was to open the breakpoints window:
window > show view > other...
debug > breakpoints
then right click any breakpoint and select "remove all"
unfortunately you have to reset all your valid breakpoints, but this worked for me and has prevented much angst and frustration going forward.
some pictures to guide others:
- Why does my Eclipse project have phantom debugger breakpoints?
- Why does my eclipse project not have a build path?
- Debugger does not stop at breakpoints in Eclipse when debugging on an existing android project
- Why does my Eclipse load with phantom breakpoints and old errors?
- Why is not recommended to have an Eclipse project folder as a Git repository?
- Why when I rename a project in Eclipse does Tomcat not pick up the new resource name?
- Why does Eclipse export my entire project as runnable JAR file?
- Does eclipse have a debugger "step into selected" option that prompts for the method to step into?
- Why does the Eclipse debugger give the error "Source not found" seemingly without reason?
- Why does the Perl debugger not stop at breakpoints with do, but stops with require?
- In dynamic web application project the Eclipse debugger is not hitting breakpoints
- Why does gradle project creation take SO LONG with eclipse STS plugin?
- Why does Eclipse have to be constantly cleaned/refreshed?
- What does this eclipse error mean: "path for project must have only one segment"?
- Does Eclipse have equivalent of .svnignore/.cvsignore for Project Explorer?
- Why does eclipse not find the beans.xml files in a spring based Maven project
- Eclipse Juno project facets does not recognize that I have Java 1.6
- Why does Eclipse complain that the project specifies compiler compliance 1.8 but a JRE 11 is used?
- Creating new PlayN project in eclipse does not have java content-assist
- Why does eclipse not recognize Java nature of a multimodule maven project if name template is added to it?
- Why does my Eclipse debugger fail to step into for the first time?
- Why is the Eclipse jar file generating compile errors when the application does not have errors?
- Why does Eclipse Scala project not find Scala?
- Why does Eclipse New Maven Project not list Spring Boot Starters?
- Why does the Eclipse debugger open up random classes when debugging?
- Why Deployment Assembly does not show mapping of WebContent/WEB-INF/lib from Eclipse project folder to application server folder?
- Why does Eclipse Mars not read the project location correctly?
- why does the eclipse debugger use localhost for debugging ?
- Eclipse: Why and when to add libraries to build path when using Maven project to not have defective Eclipse project?
- Why does eclipse debugger only show 1 or 2 lines of the stack followed by 0x0?
More Query from same tag
- How to load class files outside workspace in an Eclipse RCP project
- Make sure spring component is stateless
- Clicking on input box moves a div
- Creating Eclipse debug configuration without GUI
- Eclipse Plugin-Development Debugger out of Sync
- How to add a keyboard shortcut to the Team->Add command in eclipse
- Scala parsing package isn't recognized
- Run Eclim on the remote server
- How to get feedback on JUnit Testing in Eclipse
- error in eclipse --- java.lang.RuntimeException: Could not start Selenium session: null
- extra_subject not appear in the email app of android
- android, debug not connected to PC, no wifi?
- Runnable exported JAR not running as it should when out of Eclipse
- Redmine Eclipse-Mylyn Plugin cannot modify tasks
- While installing eclipse IDE for java I gets an error?
- Different result during Debug and Run in Java
- Spring 4.3.5 annotation based configuration tomcat-8 404 in eclipse neon 2
- How to install the RED Robot Framework Editor plug-in manually into Eclipse?
- unchecked cast warning - how to avoid this?
- How to enable changes on commit in eclipse using egit plugin
- Eclipse Hot Code Replace Fail - republish web application
- Eclipse Buildship: composite builds without changing settings.gradle
- Geotools Quickstart tutorial JFileDataStoreChooser.showOpenFile is causing error
- How to I can code/tool eclipse RCP plugin GUI testing
- Eclipse and Maven: Error occured during initialization of boot layer
- trouble running eclipse from usb
- Dependency of one class on three interfaces Guice
- help with Eclipse Memory Analyzer [MAT]
- How to find out if "debug mode" is enabled
- Cannot reference an android library project in Eclipse