Eclipse无法安装断点 [英] Eclipse Unable to install breakpoint

查看:444
本文介绍了Eclipse无法安装断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几年前,我的Eclipse IDE不再允许我远程调试我的应用程序,因为没有显示行号,因此无法安装断点。问题是我的Eclipse设置为显示行数字(我在日常开发中定期使用)



我做了一些研究,发现它有时与使用ant构建项目和调试设置有关在javac中。我确保调试是在我的build.xml目标中设置的,但仍然不会让我调试出相同的错误。



现在,添加侮辱伤害,我点击了不要再显示此消息的框,所以现在我永远不知道我是否在调试我的程序,当我尝试或失败,并且错误消息没有显示。 / p>

有谁知道如何解决这个问题?或者,至少知道如何切换该错误消息弹出来,所以我可以告诉是否/何时修复它?

解决方案

为了重新启用消息: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.

这篇关于Eclipse无法安装断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆