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

查看:19
本文介绍了在 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.

我如何获得这些?

一些谷歌搜索建议我按下工具栏上的按钮,但变量框架的工具栏上除了显示类型名称"、逻辑结构"和全部折叠"(Eclipse 3.4.2)之外什么都没有.

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).

有什么建议吗?

推荐答案

在调试变量"视图中,视图右侧有一个箭头按钮.这个按钮的工具提示是Menu.

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 -> 显示静态变量

注意:您不必重新启动 Eclipse.

Note: You do not have to restart Eclipse.

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

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