Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Unable to install breakpoint

Tags:

java

eclipse

So a couple weeks ago my Eclipse IDE no longer allowed me to remotely debug my application saying that it was unable to install breakpoints because line numbers were not being displayed...The problem is that my Eclipse is set up to display line numbers (which I use regularly in my day to day development)

I did some research and found that it sometimes has to do with using ant to build projects and a debug setting in javac. I made sure that the debugging is set in my build.xml target but it still won't let me debug with the same error.

And now, to add insult to injury, I clicked the box that says 'Do Not Show This Message Again' so now I'll never know if I'm actually debugging my program when I try or if it failed and the error message just didn't show up.

Does anyone know how to fix this? Or, at the very least know how to toggle that error message to pop back up so I can tell if/when I do fix it?

like image 292
Saggio Avatar asked Jan 21 '11 16:01

Saggio


1 Answers

In order to re enable the message : Preferences => java => debug . it is at the bottom of the screen : "Warn when unable to install breakpoint du to missing line number attributes"

For the problem about installing breakpoints, try to add a -g to your javac command line in ant (debug attribute of you compilation task, http://ant.apache.org/manual/Tasks/javac.html)

Eventually check if you have not mapped your project on a JRE instead of a JDK in eclipse.

like image 61
Twister Avatar answered Oct 14 '22 14:10

Twister