Eclipse:悬停在调试视角中损坏

发布于 2024-08-11 02:45:25 字数 309 浏览 5 评论 0原文

自从升级 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

凌乱心跳 2024-08-18 02:45:25

我转到“窗口”-“首选项”-“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...

哀由 2024-08-18 02:45:25

转到窗口 - 首选项 - Java - 编辑器 - 悬停。

  1. 是否选择了“组合悬停”?取消选中它;申请;关上窗户; 重新启动调试会话;回去;再检查一遍;申请。
  2. 如果上述方法没有帮助,您可以检查“变量值”选项并为其指定修饰键。不像“组合”那么方便,但应该可以。

Go to Window - Preferences - Java - Editor - Hovers.

  1. Is "Combined Hover" selected? Uncheck it; apply; close the window; restart debugging session; go back; check it again; apply.
  2. If the above doesn't help, you can check "Variable Values" option and specify a modifier key for it. Not as convenient as "combined", but should work.
明媚如初 2024-08-18 02:45:25

我也遇到过这个问题,我“只是”必须重新启动 Eclipse,之后悬停机制再次工作。

I had this problem too once, I "just" had to restart eclipse, after that the hover mechanism worked again.

似狗非友 2024-08-18 02:45:25

通过重命名包“解决”了该问题。

不管出于什么原因,这种重构触发了 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.

孤凫 2024-08-18 02:45:25

我有一个类似的问题,当我遇到这个问题时。我的问题是 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.

赤濁 2024-08-18 02:45:25

对于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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文