在Eclipse IDE中观察变量内容 [英] Watching variables contents in Eclipse IDE

查看:215
本文介绍了在Eclipse IDE中观察变量内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何同时观看几个变量(例如TreeSet)的内容?我可以观看一个TreeSet的内容,在变量窗口中单击它,但是我不知道如何为几个变量执行此操作。

解决方案

您可以使用表达式窗口:在调试,菜单窗口 - >显示视图 - >表达式时,可以输入需要查看内容的变量$ /

How can I watch the contents of several variables (for example, TreeSet's) simultaneously? I can watch contents of one TreeSet, clicking on it in "Variables" window, but I have no idea how to do that for several variables.

解决方案

You can use Expressions windows: while debugging, menu window -> Show View -> Expressions, then it has place to type variables of which you need to see contents

这篇关于在Eclipse IDE中观察变量内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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