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: Fri, 19 Sep 2008 07:55:36 -0400
- Thread-topic: How do I view the retain count in Xcode's debug window?
So something like this: override retain, release, and autorelease so
that every time any of them get called, the object's location in memory,
its retain count, and its description get written to a log file. Then
set up the appropriate environment variables so that I kill the program
the moment overreleasing happens. I can then grep for the object in the
log file via its location in memory, and then try to work out every
place that it is being retained/released to figure out what is
happening.
Argh, all this makes me wish for Omnicient Debugging
(http://www.lambdacs.com/debugger/
http://www.google.com/search?hl=en&q=omniscient+debugger)
Thanks,
Cem Karan
> -----Original Message-----
> From: Scott Ribe [mailto:email@hidden]
> Sent: Thursday, September 18, 2008 7:29 PM
> To: xcoders; Karan, Cem (Civ, ARL/CISD)
> Subject: Re: How do I view the retain count in Xcode's debug window?
>
> >... overwriting -release and -retain ...
>
> Override autorelease as well; it's not very informative to
> see your object being released because a pool is being popped ;-)
_______________________________________________
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