Re: Compiler not finding "NSDebug.h" - WHY?
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