Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to search for instances of a class using eclipse?

I want to find instances of a class and modify some of the properties of one of the instance. But i cannot find a way to break in a block of code that references that class, so that it may appear in the variables view. What i'm thinking is to pause the jvm and the search for instances of MyClass but i can't find a tool to do this. Someone got an idea ?

like image 365
osh Avatar asked Dec 22 '25 02:12

osh


1 Answers

I would open the call-hierarchie of the constructor of this class. Mark the constructor, left click, call hierarchie. That will give you a list wherever the object gets instantiated.

like image 152
Axel Amthor Avatar answered Dec 23 '25 17:12

Axel Amthor