• 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: "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

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

  • Prev by Date: Re: Package a ruby gem into an app
  • Next by Date: Re: "Refactor..." menu item is disabled
  • Previous by thread: Re: 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