1. Are you ready for the Galaxy S20? Here is everything we know so far!

Android Studio - Tool to find out where a particular object was instantiated

Discussion in 'Android Development' started by Frederik Kammel, Oct 1, 2021.

  1. Frederik Kammel

    Thread Starter

    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 :)
     



    1. Download the Forums for Android™ app!


      Download

       
  2. Unforgiven

    Unforgiven ...eschew obfuscation...
    Moderator

    I have no idea nor solution for you, but I did want to say hello and welcome. :)
     
    puppykickr, Dannydet and ocnbrze like this.
Loading...
Similar Threads - Android Studio Tool
  1. ivanburyy1r64rewtr
    Replies:
    4
    Views:
    280
  2. neha goenka
    Replies:
    0
    Views:
    207
  3. GiuseppeSM
    Replies:
    3
    Views:
    377
  4. Brian Roach
    Replies:
    0
    Views:
    195
  5. JuryWithBigNose
    Replies:
    0
    Views:
    243
  6. brentc
    Replies:
    2
    Views:
    394
  7. doclogic
    Replies:
    1
    Views:
    495
  8. jabbar12
    Replies:
    2
    Views:
    460
  9. cjnewman28
    Replies:
    2
    Views:
    607
  10. AlexEv
    Replies:
    0
    Views:
    1,221

Share This Page

Loading...