是否有可能在执行时看到对一个对象的所有引用? [英] Is it possible see all the references to an object in execution time?

查看:31
本文介绍了是否有可能在执行时看到对一个对象的所有引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在执行时查看一个对象的所有引用?

Is there a way to see all the references to an object in execution time?

我使用的是 Netbeans,里面有这个功能吗?

I'm using Netbeans, does this feature exist in it?

使用探查器来做到这一点没问题,我只需要知道参考资料,无论如何.

No problem in using profilers to do this, I only need know the references, no matters how.

推荐答案

好的,Netbeans 显示对一个对象的所有引用.

Ok, Netbeans show all the references to an object.

首先,在调试模式下运行项目 CTRL + F5,然后,显示加载的类 Alt + Shift + 4Window->Debug->加载的类.

First, run the project in debug mode CTRL + F5, after, show the Loaded Classes Alt + Shift + 4 or Window->Debug->Loaded Classes.

选择要查看引用的类并双击它.

Choose the class will want to see the references and double click on it.

暂停执行就可以了.

顶部是对象的属性,底部是对它的所有引用.

In the top is the attributes of the object, and in the bottom, all references to it.

这篇关于是否有可能在执行时看到对一个对象的所有引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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