Oct 1, 2021
Hello forum,
I am currently debugging an app in Android Studio and I am in a situation where I have an object and I need to find where this particular instance was created. In other words: I need to find the constructor call that created that particular instance.

My current workflow is to find all usages of the constructor, set breakpoints everywhere and then see which constructor call actually lead to the object I am looking for. In the current situation though, there are a lot of constructor-candidates which are called at a bazillion places, making this manual search really hard. My question is hence, whether there is some sort of plugin that observes all object instantiations that can then show me where the object was instantiated.

Obligatory disclaimer: It's my first time posting here, so please be gentle with me ;)

Thanks for your help :)