Eclipse:悬停在调试视角中损坏
自从升级 Eclipse(Galileo build 20090920-1017)以来,将鼠标悬停在调试中不再显示变量的值。相反,悬停的行为就像我处于正常的 Java 视角中一样:
alt text http://michaelzanussi.com /wp-content/uploads/2009/11/debug_hover.png
我尝试过清理项目、重新导入它等,但都无济于事。我这里缺少什么吗?
Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable's value. Instead, hover behaves as if I were in normal Java perspective:
alt text http://michaelzanussi.com/wp-content/uploads/2009/11/debug_hover.png
I've tried cleaning the project, re-importing it, etc., all to no avail. Anything I'm missing here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我转到“窗口”-“首选项”-“Java”-“编辑器”-“悬停”,点击“恢复默认值”和“应用”,这为我解决了这个问题,尽管设置中实际上没有任何更改......
I went to Window - Preferences - Java - Editor - Hovers, hit "Restore Defaults" and "Apply" and that fixed it for me, even though nothing actually changed in the settings...
转到窗口 - 首选项 - Java - 编辑器 - 悬停。
Go to Window - Preferences - Java - Editor - Hovers.
我也遇到过这个问题,我“只是”必须重新启动 Eclipse,之后悬停机制再次工作。
I had this problem too once, I "just" had to restart eclipse, after that the hover mechanism worked again.
通过重命名包“解决”了该问题。
不管出于什么原因,这种重构触发了 Eclipse 中的某些内容,我立即能够在调试过程中查看变量值。另外,当我返回“悬停”下的“首选项”时,我现在可以看到“变量值”选项。
The problem was "fixed" by renaming the package.
For whatever reason, this refactoring triggered something in Eclipse, and immediately I was able to view variable values during debugging. Also, when I go back into Preferences under Hovers, I can now see the "Variable Values" option.
我有一个类似的问题,当我遇到这个问题时。我的问题是 Windows 悬停时间设置为 20 秒左右(您可以通过将鼠标放在错误上并等待一分钟左右来测试这是否是您的问题)。注册表项“MouseHoverTime”设置为 200000 毫秒(通常为 400)的较大值。通过开始修复它 ->运行-> “注册表编辑器”-> HKEY_CURRENT_USER\Control Panel\Mouse 双击“MouseHoverTime”并将其设置回 400。
我认为这已经在我的计算机上完成了一段时间,以防止另一个程序中出现悬停弹出窗口。无论如何,抱歉,我的答案并不直接适用于这个问题,但我希望它能帮助像我这样遇到类似问题的人。
I had a similar issue and when I came across this question. My problem was that windows hover time was set to 20s or so (you can test if this is your problem by putting the mouse on a mistake and waiting for a min or so). The registry key "MouseHoverTime" was set to a large value of 200000 ms (normally 400). Fix it by going to start -> run -> "regedit" -> HKEY_CURRENT_USER\Control Panel\Mouse double click "MouseHoverTime" and setting it back to 400.
I think this had been done on my computer a while back to prevent hover popups in another program. Anyway, sorry that my answer doesn't directly apply to this question, but I'm hoping it'll help somebody like me that comes across this thread with a similar issue.
对于C++项目,请在编译器选项中添加-ggdb -0g。希望这个解决方案可以帮助每个 C++ 程序员面临同样的问题。
For C++ project, please add -ggdb -0g to the compiler option. Hope this solution can help eveyry C++ programer face with the same issue.