无法在Eclipse中设置断点 [英] Can't set breakpoints in Eclipse

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

问题描述



我被指示以下列方式之一设置断点:

继续使用Eclipse 3.4.2在OSX 10.5.6上的Android记事本教程。 / p>


  1. 双击编辑器窗格左侧的灰色条。




    • 这只是打开添加书签窗口


  2. 选择切换断点在上下文菜单中




    • 上下文菜单中唯一的选项是转到注释...(禁用),

添加书签,添加任务,快速差异,显示行号,折叠 >

我的猜测是,编辑器在某种模式下不允许设置断点,但我只是一个Eclipse newb。任何人都可以在这里提供任何建议?

解决方案

当双击灰色条时,蓝色的球出现?如果出现,请尝试将鼠标悬停在其上,并且可能会显示Line Breakpoint:Blablabla



否则,尝试检查是否使用java编辑器打开你的档案要查看此权限,请单击要打开的文件,转到打开方式条目,并检查是否选择了Java编辑器,如果没有这样的选项,这意味着您没有安装JDT,并且可能更好地下载Java版本eclipse从它的官方网站。



如果以前的任何选项都没有帮助,它可能是一个错误,你应该将其报告给 eclipse bug系统如果你真的那么好。


Following the Android notepad tutorials using Eclipse 3.4.2 on OSX 10.5.6.

I'm instructed to set a breakpoint in one of the following ways:

  1. Double click on the gray bar to the left of the editor pane.

    • this just brings up the "Add Bookmark" window
  2. Select "Toggle breakpoint" in the context menu

    • the only options in the context menu are "Go to Annotation..." (which is disabled), "Add Bookmark", "Add Task", "Quick Diff", "Show line numbers", "Folding" and "Preferences"

My guess would be that the editor's in some mode that doesn't allow breakpoints to be set, but I'm only an Eclipse newb. Anyone able to lend any advice here?

解决方案

When you double click the gray bar a blue ball appears? If it appears, try to hover you mouse over it and It may say "Line Breakpoint:Blablabla"

Otherwise, try to check if you are using a java editor to open your file. To check this right click the file you want to open, go to the Open With entry and check if Java Editor is selected, if there is not such option this means that you have not the JDT installed and is probably better to download the Java version of eclipse from its official website.

If none of the previous options helped, its probably a bug and you should report it to the eclipse bug system if you would be so kind.

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

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