简体   繁体   English

在Eclipse中进行调试时如何访问对象和变量

[英]How to access objects and variables while debugging in Eclipse

I'm debugging an Eclipse project in which I have an object (specifically a ResourceDelta object), In the Variables view I can see a lot of useful information that I need but I'm not sure how to access those values, ie this is how my Variables view looks like while I'm debugging: 我正在调试一个Eclipse项目,其中有一个对象(特别是ResourceDelta对象)。在“ 变量”视图中,我可以看到很多我需要的有用信息,但是我不确定如何访问这些值,即调试时,“ 变量”视图的外观如何:

在此处输入图片说明

I need to get the newInfo and oldInfo values, but if I use the content assistant in the test1 object only this methods are available: 我需要获取newInfooldInfo值,但是如果我在test1对象中使用内容助手,则只能使用以下方法:

在此处输入图片说明

How can I get those values? 如何获得这些价值?

您可以在变量窗口中展开newinfooldinfo的树-在该变量将显示该对象的详细信息及其值之前单击>。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM