[英]Why is Eclipse not showing values of all objects in the Debug perspective?
When debugging a Java application in Eclipse JDT, values of some variables are displayed in the Variables view but not in tooltips when hovering over the variables in the editor. 在Eclipse JDT中调试Java应用程序时,将鼠标悬停在编辑器中时,某些变量的值将显示在“变量”视图中,而不显示在工具提示中。
The following screenshot illustrates the problem: 以下屏幕截图说明了该问题:
As you can see a tooltip with a variable value is shown for this
. 如您所见, this
显示了带有可变值的工具提示。 However no tooltip (or the one containing only declaration in case of Combined Hover) is shown for key
while the Variables view shows values for both this
and key
. 但是示出了用于无工具提示(或仅包含在组合悬停的情况下声明所述一个) key
,而变量查看两个展示值this
和key
。
I've tried Combined Hover and Variable Values in Java/Editors/Hovers as suggested here with a similar effect. 我试过联合哈弗和变量值中的Java /编辑/悬停的建议在这里有一个类似的效果。 The only difference is that Combined Hover shows declaration in a tooltip when Variable Values doesn't show a tooltip at all. 唯一的区别是,当“变量值”根本不显示工具提示时,组合悬停会在工具提示中显示声明。
事实证明这是Eclipse 在此处报告的错误。
You seem to be working with an unsaved file (a star next to the file name). 您似乎正在使用未保存的文件(文件名旁边的星号)。 Try saving the file + rebuilding your project, then relaunch. 尝试保存文件+重建项目,然后重新启动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.