Eclipse中Debug时鼠标悬停不能查看变量值解决办法
问题描述:Eclipse在Debug模式下,当鼠标移动到某个变量上面时不自动显示该变量对应的值。 解决方法:在Eclipse中点击 Window->Preferences->Java->Editor->Hovers, 勾选Variable Values,(如果Combined Hover已经选择了,就取消它),然后点击Apply,最后点OK。 有时不需要勾选Variable Values,只勾选Combined Hover也能查看变量值,所以勾不勾选多试几下,Debug可能就好了。 Hovers主要是来用配置当鼠标移动到工程中的某一项目上时所需要展示的信息。通过Hovers配置实现一些功能的快捷方式。 主要包括以下几个属性的配置: Combined Hover - Tries the hovers in the sequence listed in above table,excluding this hover,and uses the one which fits best for the selected element and the current context. Variable Values - Shows the value of the selected variable when debugging. Problem Description - Shows the description of the selected problem. Externalized String - Shows the externalized string of the selected key. Javadoc - Shows the Javadoc of the selected element.. Annotation Description - Shows the description of the selected annotation. Source - Shows the source of the selected element. 下面再介绍一招可以让自动补全用起来更“自动”。好不好用取决于自己的习惯。 在主菜单的: Window -> Preferences -> Java/Editor/Content Assist 把"Autocomplete Trigger for Java"配置为:.(abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 总结 以上就是本文关于Eclipse中Debug时鼠标悬停不能查看变量值解决办法的全部内容,希望对大家有所帮助。感兴趣的朋友可以继续参阅本站:Eclipse自定义启动画面和图标的方法介绍、Eclipse代码格式化设置简单介绍、eclipse 联想功能设置技巧等,有什么问题可以随时留言,小编会及时回复大家的。感谢朋友们对本站的支持! (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |