且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Eclipse无法安装断点

更新时间:2022-10-19 16:46:05

为了重新启用消息:Preferences => java => debug。它位于屏幕底部:无法将断点du安装到缺少行号属性时发出警告



有关安装断点的问题,请尝试添加 - g到ant中的javac命令行(编译任务的调试属性, http:// ant .apache.org / manual / Tasks / javac.html



最终检查您是否在JRE中映射了项目,而不是在Eclipse中映射JDK 。


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?

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.