Re: why can't I examine defaults in the debugger?
Re: why can't I examine defaults in the debugger?
- Subject: Re: why can't I examine defaults in the debugger?
- From: Daniel Jalkut <email@hidden>
- Date: Thu, 9 Mar 2006 12:10:43 -0500
I also find it to be a fuzzy line what gdb will or will not recognize
as a symbol at a given time. I suppose it probably has an easy
answer, boiling down to a question of how many symbols remain in your
binary, but I seem to get bit by problems like this from time to time
in what I expect to be a completely "symbol-laden" executable.
So - no help here, but just a vote that you're "not crazy." A
possible workaround in this particular case:
(gdb) po [[NSClassFromString(@"NSUserDefaults") standardUserDefaults]
objectForKey:@"whatever"]
This shifts the burden of knowing what "NSUserDefaults" means from
gdb to the ObjC runtime.
Daniel
On Mar 3, 2006, at 12:36 PM, Matt Neuburg wrote:
I'm sure this is very elementary, but when I'm paused at a
breakpoint, why
doesn't this work in the gdb console?
(gdb) po [[NSUserDefaults standardUserDefaults]
objectForKey:@"whatever"]
gdb says:
No symbol "NSUserDefaults" in current context.
I don't understand what that means, or how to examine the defaults.
Thx - m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com
This email sent to email@hidden
_______________________________________________
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