不工作 - 将鼠标悬停在变量上以查看Eclipse中的调试值

tro*_*roy 5 eclipse variables debugging hover

我使用的是经典的Eclipse 3.6.1.我有一个Java项目,由于堆栈溢出而抛出异常.与其他编辑器不同,当我将鼠标指针悬停在变量上时,它不会向我显示该变量的值.以下是设置

Window->Preferences->Java->Editor->Hovers
Combined Hover - Shift
Variable Values - Ctrl
Source - Shift+Ctrl
Run Code Online (Sandbox Code Playgroud)

但这似乎并没有起作用.我见过其他人关于同样问题的线程,但找不到解决方案.这是一个尚未修复的错误吗?

谢谢!

Swa*_*mar 6

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

Is "Combined Hover" selected? Uncheck it; apply; close the window; restart debugging session; go back; check it again; apply.
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.
Run Code Online (Sandbox Code Playgroud)

通过重命名包来解决问题.

无论出于何种原因,这种重构会在Eclipse中触发某些内容,并且我立即能够在调试期间查看变量值.此外,当我回到Hovers下的偏好设置时,我现在可以看到"变量值"选项.