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: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
- Date: Thu, 18 Sep 2008 11:18:28 -0400
- Thread-topic: How do I view the retain count in Xcode's debug window?
> -----Original Message-----
> From: Ken Thomases [mailto:email@hidden]
> Sent: Thursday, September 18, 2008 9:25 AM
> To: Karan, Cem (Civ, ARL/CISD)
> Cc: xcoders
> Subject: Re: How do I view the retain count in Xcode's debug window?
>
> 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.
I tried using instruments, and I finally did figure out how to get it configured for retain counts, but I'm not seeing any. Does
the application have to be running in order for Instruments to show thing correctly? Currently, my application keeps on crashing,
so I have no idea what state the thing is in. I'm commenting lines in and out until I find it, but that is NOT ideal...
Thanks,
Cem Karan
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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