Re: Determining Class from Instance address
Re: Determining Class from Instance address
- Subject: Re: Determining Class from Instance address
- From: Jens Alfke <email@hidden>
- Date: Fri, 21 Mar 2008 08:56:05 -0700
On 21 Mar '08, at 7:40 AM, Joseph Ayers wrote:
Given a log messages like:
2008-03-21 09:06:35.464 Roboplasm[12210:10b] *** -[VideoController
measureMethodChanged:]: unrecognized selector sent to instance
0x3dfbc0
How does one determine the sender and self....
Set a breakpoint at objc_exception_throw (if you're on Leopard) or -
[NSException raise] and NSRaiseError (on earlier OSs), using the
Breakpoints window in Xcode. Then run your app in the debugger. It'll
stop at the point where the exception is thrown; then you can look at
the stack to see what's going on, and inspect the values of variables.
It's always a good idea to have such a breakpoint set. It helps a lot
in debugging.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden