• 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: Compiler not finding "NSDebug.h" - WHY?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiler not finding "NSDebug.h" - WHY?


  • Subject: Re: Compiler not finding "NSDebug.h" - WHY?
  • From: Harilaos Skiadas <email@hidden>
  • Date: Wed, 29 Dec 2004 13:01:38 -0800 (PST)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys

>Hi,
>

Hi John

>I'm trying to find out which objects are getting
de-allocated...   I
>found out a
>file called "NSDebug.h" which has access to routines
and the NSDebug
>class...  and in particular,  I was hoping I could
use....
>

There is no NSDebug class. NSDebug.h defines a
category on NSAutoreleasePool, and showPools is a
method there, so what you want is:
[NSAutoreleasePool showPools];

Also, you want #import <Foundation/NSDebug.h>
not just #import <NSDebug.h>

>+ (void)showPools;
>    // Displays to stderr the state of the current
thread's
>    // autorelease pool stack.
>
>Do I really want to use this?
>
>Is there any other way I can use the debugger to tell
me what's going
>on?

My approach is to put a ton of breakpoints through the
code in every possible place and go through the
program step by step. Before that, I put NSLog's when
entering and when exiting any method, to see exactly
what gets called. Probably not the best approach, but
it has served me well so far.

HTH,
Haris



__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Sorting unicode strings
  • Next by Date: Re: NSLog and printf not working!!!1
  • Previous by thread: Re: Compiler not finding "NSDebug.h" - WHY?
  • Next by thread: Sorting unicode strings
  • Index(es):
    • Date
    • Thread