Eclipse调试模式视图实例变量值 [英] Eclipse debug mode view instance variable values

查看:85
本文介绍了Eclipse调试模式视图实例变量值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图以调试模式在eclipse中查看Arraylist的实例变量值,但是除了列表中的值之外,我无法查看属于arraylist的变量,例如elementData或modCount.我也尝试过使用观看",显示"选项,但无济于事.下面是设置断点并触发程序运行后的屏幕截图:

下面是我在其中一个实例变量如elementData,modCount和size可见的网站中找到的屏幕截图:

解决方案

在氧气中,显示逻辑结构"为

[图片来自eclipse.org]

I am trying to view the instance variables values of the Arraylist in eclipse in debug mode but apart from the values in the list am unable to view variables like elementData or modCount that are part of the arraylist. I have tried using Watch, Display option as well but to no avail. Below is my screenshot after setting the breakpoint and triggering the program run:

Below is the screenshot that I found in one of the websites where the instance variables like elementData,modCount and size are visible:

解决方案

In oxygen, "Show Logical Structure" is enabled by default. All you have to do is click on it to disable it.

[Image taken from eclipse.org]

这篇关于Eclipse调试模式视图实例变量值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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