Re: problems debugging cocoa app w/ gdb
Re: problems debugging cocoa app w/ gdb
- Subject: Re: problems debugging cocoa app w/ gdb
- From: "email@hidden" <email@hidden>
- Date: Tue, 7 Apr 2009 12:20:31 -0700
At 6:48 PM -0500 4/6/09, Ken Thomases wrote:
On Apr 6, 2009, at 2:52 PM, email@hidden wrote:
for sometime now (i don't remember when this started, possibly w/
leopard or 10.5.5 or the previous dev tools update), i've been
getting a number of lines like the following on the debugger
console when hitting breakpoints:
warning: Trying to look up "NSString" in 'this' but 'this' is not
an aggregate
warning: Trying to look up "description" in 'this' but 'this' is
not an aggregate
warning: Trying to look up "void" in 'this' but 'this' is not an aggregate
warning: Trying to look up "_pbxgdb_objc_dynamic_type" in 'this'
but 'this' is not an aggregate
warning: Trying to look up "_pbxgdb_objc_compute_super_class_list"
in 'this' but 'this' is not an aggregate
warning: Trying to look up "_pbxgdb_cf_introspect_string" in 'this'
but 'this' is not an aggregate
additionally, the variables pane of the debugger window (the top
right pane) will show
<incomplete type>
as the value of many of my variables, usually scaler type (e.g.,
int, BOOL) or variables declared as: id.
can anyone suggest how to fix this?
I'm not sure what's going wrong, but here are a couple of things to check:
hi ken,
thanx for the reply.
With the debugger active, bring up the Expressions window (Run >
Show > Expressions). Clear out any stale entries.
i did have some old entries here which i'd completely forgotten
about. but clearing them didn't help.
Check if you have a (hidden) .gdbinit file in your home directory,
or possibly in the root directory. Move it aside and restart the
debugger.
didn't have one.
i did find that turning off "Enable Data formatters" got rid of the
_pbxgdb_... lines in the log, but doesn't solve any real problems,
ie, my data is still not readable and i'm still reduced to NSLog (ie,
i still can't view the suspect variables using the console window).
ken
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