简体   繁体   English

Eclipse:Hover在调试透视图中断开

[英]Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable's value. 自升级Eclipse(Galileo build 20090920-1017)以来,在调试中悬停不再显示变量的值。 Instead, hover behaves as if I were in normal Java perspective: 相反,悬停行为就像我在普通的Java透视图中一样:

alt text http://michaelzanussi.com/wp-content/uploads/2009/11/debug_hover.png 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? 我在这里缺少什么?

我去了Window - Preferences - Java - Editor - Hovers,点击“Restore Defaults”和“Apply”并为我修复它,即使设置中没有任何实际改变...

Go to Window - Preferences - Java - Editor - Hovers. 转到窗口 - 首选项 - Java - 编辑器 - 悬停。

  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. 不如“组合”方便,但应该有效。

我曾经遇到过这个问题,我“只是”必须重启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. 无论出于何种原因,这种重构在Eclipse中触发了一些东西,并且我立即能够在调试期间查看变量值。 Also, when I go back into Preferences under Hovers, I can now see the "Variable Values" option. 此外,当我回到Hovers下的偏好设置时,我现在可以看到“变量值”选项。

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). 我的问题是窗口悬停时间设置为20秒左右(您可以通过将鼠标置于错误并等待一分钟左右来测试这是否是您的问题)。 The registry key "MouseHoverTime" was set to a large value of 200000 ms (normally 400). 注册表项“MouseHoverTime”被设置为200000毫秒的大值(通常为400)。 Fix it by going to start -> run -> "regedit" -> HKEY_CURRENT_USER\\Control Panel\\Mouse double click "MouseHoverTime" and setting it back to 400. 通过开始修改它 - >运行 - >“regedit” - > HKEY_CURRENT_USER \\控制面板\\鼠标双击“MouseHoverTime”并将其设置回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. 无论如何,对不起,我的答案并不直接适用于这个问题,但我希望它能帮助像我这样遇到类似问题的人。

For C++ project, please add -ggdb -0g to the compiler option. 对于C ++项目,请将-ggdb -0g添加到编译器选项中。 Hope this solution can help eveyry C++ programer face with the same issue. 希望这个解决方案可以帮助传播C ++程序员面对同样的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM