• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Debugger and Object State
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Debugger and Object State (From: Lloyd Sargent <email@hidden>)

  • Prev by Date: Re: Debugger and Object State
  • Next by Date: Re: Debugger and Object State
  • Previous by thread: Re: Debugger and Object State
  • Next by thread: Re: NSTextView
  • Index(es):
    • Date
    • Thread