不起作用 - 将鼠标悬停在变量上以查看 Eclipse 中调试视角中的值
我正在使用经典的 Eclipse 3.6.1。 我有一个 Java 项目,由于堆栈溢出而引发异常。 与其他编辑器不同,当我将鼠标指针悬停在变量上时,它不会显示该变量的值。 这是中的设置
Window->Preferences->Java->Editor->Hovers
Combined Hover - Shift
Variable Values - Ctrl
Source - Shift+Ctrl
但这似乎不起作用。我看过其他人关于同样问题的帖子,但找不到解决方案。这是一个尚未修复的错误吗?
谢谢!
I am using classic Eclipse 3.6.1.
I have a Java project which is throwing an exception because of a stack overflow.
Unlike other editors, when I hover my mouse pointer on a variable it does not show me the value of that variable.
Here are the settings in
Window->Preferences->Java->Editor->Hovers
Combined Hover - Shift
Variable Values - Ctrl
Source - Shift+Ctrl
But this doesn't seem to be working. I have seen threads by others about this same problem but could not find a solution. Is this a bug that hasn't been fixed yet?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
转到窗口 - 首选项 - Java - 编辑器 - 悬停。
通过重命名包,问题得到“解决”。
不管出于什么原因,这种重构会触发 Eclipse 中的某些内容,并且我立即能够在调试期间查看变量值。另外,当我返回“悬停”下的“首选项”时,我现在可以看到“变量值”选项。
Go to Window - Preferences - Java - Editor - Hovers.
The problem gets "fixed" by renaming the package.
For whatever reason, this refactoring triggers 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.
就我而言,检查并启用了悬停下的首选项。即使在那之后,当我将鼠标移动到变量上时,它也没有显示值。只需关闭并重新打开 Eclipse(我将 Eclipse 与 Python 结合使用)即可解决问题。
In my case Preferences under Hovers were checked and enabled. Even after that it was not showing values when I move the mouse on the variable. Problem has been fixed by simply closing and reopening the Eclipse (I was using Eclipse with Python).
检查您的 Windows 注册表(cmd -> regedit):
计算机\HKEY_CURRENT_USER\控制面板\鼠标> MouseHoverTime
确保将其设置为默认值 (400)
Check your Windows Registry (cmd -> regedit):
Computer\HKEY_CURRENT_USER\Control Panel\Mouse > MouseHoverTime
make sure it is set to the default (400)