• 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: How do I view the retain count in Xcode's debug window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: How do I view the retain count in Xcode's debug window?
      • From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
References: 
 >How do I view the retain count in Xcode's debug window? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)

  • Prev by Date: Build error - strip failed (3.1.1)
  • Next by Date: Link error using C dylib from C++ dylib
  • Previous by thread: How do I view the retain count in Xcode's debug window?
  • Next by thread: RE: How do I view the retain count in Xcode's debug window?
  • Index(es):
    • Date
    • Thread