在Eclipse中调试时修改/查看静态变量 [英] Modify/view static variables while debugging in Eclipse

查看:400
本文介绍了在Eclipse中调试时修改/查看静态变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据问题。
在调试视图中,有变量框架。它显示当前对象和所有局部变量的成员变量的所有值,但它不显示对象类的任何静态变量。



如何有些谷歌搜索建议我按工具栏上的按钮,但在显示类型名称逻辑结构中,变量框架的工具栏上没有任何内容。 和全部折叠(Eclipse 3.4.2)。



任何建议?

解决方案

在调试变量视图中,它们是视图右侧的箭头按钮。该按钮的工具提示是菜单



当您点击此按钮时,会显示一个下拉菜单选择



Java - > 显示静态变量注意:您不必重新启动Eclipse。




As per the question. In the debug view, there's the Variables frame. It shows all the values of member variables of the current object, and all of the local variables, but it doesn't show any static variables of the object's class.

How do I get to these?

Some googling has suggested I press the button on the toolbar, but there's nothing on the Variables frame's toolbar except "Show Type Names" "Logical Structure" and "Collapse All" (Eclipse 3.4.2).

Any advice?

解决方案

In the Debug Variables view their is a arrow button in the right of the view. the tooltip of this button is Menu.

When you click this button a drop down menu is shown where you can select

Java -> Show static variables

Note: You do not have to restart Eclipse.

这篇关于在Eclipse中调试时修改/查看静态变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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