Not working - Hover on variable to see value in debug prespective in Eclipse(不工作 - 将鼠标悬停在变量上以查看 Eclipse 中调试方面的值)
问题描述
我使用的是经典的 Eclipse 3.6.1.我有一个 Java 项目由于堆栈溢出而引发异常.与其他编辑器不同,当我将鼠标指针悬停在变量上时,它不会显示该变量的值.这是
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?
谢谢!
推荐答案
转到窗口 - 首选项 - Java - 编辑器 - 悬停.
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.
无论出于何种原因,这种重构在 Eclipse 中触发了一些东西,并且我立即能够在调试期间查看变量值.此外,当我回到悬停下的首选项时,我现在可以看到变量值"选项.
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 中调试方面的值


基础教程推荐
- 如何在不安装整个 WTP 包的情况下将 Tomcat 8 添加到 Eclipse Kepler 2022-01-01
- 如何对 HashSet 进行排序? 2022-01-01
- 如何使用 Eclipse 检查调试符号状态? 2022-01-01
- Spring Boot Freemarker从2.2.0升级失败 2022-01-01
- Java 中保存最后 N 个元素的大小受限队列 2022-01-01
- 如何强制对超级方法进行多态调用? 2022-01-01
- 首次使用 Hadoop,MapReduce Job 不运行 Reduce Phase 2022-01-01
- 在螺旋中写一个字符串 2022-01-01
- 由于对所需库 rt.jar 的限制,对类的访问限制? 2022-01-01
- 如何使用 Stream 在集合中拆分奇数和偶数以及两者的总和 2022-01-01