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 中调试方面的值
基础教程推荐
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
