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

发布于 2024-10-17 22:41:14 字数 313 浏览 2 评论 0原文

我正在使用经典的 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 技术交流群。

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

发布评论

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

评论(3

氛圍 2024-10-24 22:41:14

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

通过重命名包,问题得到“解决”。

不管出于什么原因,这种重构会触发 Eclipse 中的某些内容,并且我立即能够在调试期间查看变量值。另外,当我返回“悬停”下的“首选项”时,我现在可以看到“变量值”选项。

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

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.

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.

<逆流佳人身旁 2024-10-24 22:41:14

就我而言,检查并启用了悬停下的首选项。即使在那之后,当我将鼠标移动到变量上时,它也没有显示值。只需关闭并重新打开 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).

み格子的夏天 2024-10-24 22:41:14

检查您的 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)

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