Re: How do I view the retain count in Xcode's debug window?
Re: How do I view the retain count in Xcode's debug window?
- Subject: Re: How do I view the retain count in Xcode's debug window?
- From: Ken Thomases <email@hidden>
- Date: Thu, 18 Sep 2008 08:24:34 -0500
On Sep 18, 2008, at 8:01 AM, Karan, Cem (Civ, ARL/CISD) wrote:
I'm debugging an over-release problem, and I'd like to know the
retain count of the object that is being deallocated at every step
of the way. Unfortunately, Xcode doesn't display the retain count.
How do I get [thing retainCount] to display from within Xcode?
In the debugger console, you could type: print (unsigned int)[thing
retainCount]
You could also use the Expressions window for that.
Finally, for an over-release problem you might consider using the
Object Alloc instrument. It can be configured to track retain counts.
Cheers,
Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden