不工作 - 将鼠标悬停在变量上,以在Eclipse中查看调试中的值 [英] Not working - Hover on variable to see value in debug prespective in Eclipse

查看:274
本文介绍了不工作 - 将鼠标悬停在变量上,以在Eclipse中查看调试中的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

  Window-> Preferences-> Java-> Editor-> Hovers中的设置
组合悬停 - Shift
变量值 - Ctrl
源 - Shift + Ctrl

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



谢谢!

解决方案

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

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

该问题通过重命名包来修复。



无论什么原因,这个重构在Eclipse中触发了一些东西,并且立即在调试期间可以查看变量值。此外,当我在Hovers上回到偏好设置时,我现在可以看到变量值选项。


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!

解决方案

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.

这篇关于不工作 - 将鼠标悬停在变量上,以在Eclipse中查看调试中的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆