Using the debugger to find all strong references to an object [closed]
Asked Answered
V

1

8

I have an object a1 of class A, I want to find all the objects that hold a strong a reference to the object a1.

Is there a way to do it?

The reason I want to know this is because, a1 doesn't seem to be deallocated.

Vachon answered 22/6, 2014 at 3:14 Comment(2)
See the latter part of this answer, which shows the "Record reference counts" feature, which helps identify all strong references.Japha
Thanks a lot !! Could you pls post that as an answer so that I can mark it as answered. Awesome, Under Allocation List the column category corresponds to the object.Vachon
Q
3

Yes, using Instruments.app, you can. Apple has a simple introduction, and if that doesn't help, many others have tutorials for using Instruments as well.


edit - this article looks useful, too.

Quartile answered 22/6, 2014 at 3:39 Comment(3)
The link in your answer is broken.Lopez
Links in this answer are broken and no longer helpful.Popularity
Found the article under a different URL, also updated the link in the answer: technetexperts.com/mobile/…Titian

© 2022 - 2024 — McMap. All rights reserved.