Re: Debugger and Object State
Re: Debugger and Object State
- Subject: Re: Debugger and Object State
- From: Finlay Dobbie <email@hidden>
- Date: Sat, 25 Aug 2001 20:34:18 +0100
On Saturday, August 25, 2001, at 08:20 pm, Lloyd Sargent wrote:
Yeah, bad subject heading but here is the gist of my issue:
Is there some way in the debugger to determine if an object has been
released? I've run into a bug that I swear isn't a retention error but
damn if it doesn't look like one.
By released, do you mean deallocated? You can set the NSZombieEnabled
environment variable to YES and that means that objects stay around
after they should really have been deallocated, and messaging them gets
logged. If you mean the object's retain count, i think it's just p
[object retainCount] in the console, but I've never personally used
it :-)
Check out NSDebug.h in Foundation anyway, there is some cool stuff in
there.
-- Finlay