Java – eclipse cannot install breakpoints
So a few weeks ago, my eclipse ide no longer allowed me to remotely debug my application, saying that it could not install breakpoints because it did not display line numbers... The problem is that my eclipse is set to display line numbers (I often use them in my daily development)
I did some research and found that it is sometimes related to building projects using ant and debugging settings in javac I make sure the debugging is in my build XML target, but it still doesn't allow me to debug with the same error
Now, in order to increase insult damage, I click the "don't show this message again" box, so now I will never know whether I am debugging my program when I try, or if it fails and the error message just doesn't appear
Who knows how to solve this problem? Or at least know how to switch the error message to pop up the backup so that I can determine whether / when to repair?
Solution
To re enable messages: preferences = > java = > debugging It is at the bottom of the screen: "warn when a breakpoint Du cannot be installed to the missing line number property"
For the problem of installing breakpoints, try adding - G (debug attribute of compilation task) to the javac command line in ant, http://ant.apache.org/manual/Tasks/javac.html )
Finally, check whether you don't map the project to JRE instead of JDK in eclipse