Reading Stacktrace in Objective-C?
Posted
by yar
on Stack Overflow
See other posts from Stack Overflow
or by yar
Published on 2010-05-13T17:59:55Z
Indexed on
2010/05/13
18:04 UTC
Read the original article
Hit count: 393
objective-c
|debugging
I don't like real-time debugging much, but if it's necessary I'll do it.
Is there any way to figure out what line of code a StackTrace in Objective-C refers to? What about the variable it refers to? For instance:
2010-05-13 19:39:11.673 Thingers[21003:207] *** -[NSCFString count]: unrecognized selector sent to instance 0x3b0ebb0
2010-05-13 19:39:11.674 Thingers[21003:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString count]: unrecognized selector sent to instance 0x3b0ebb0'
2010-05-13 19:39:11.675 Thingers[21003:207] Stack: (
29303899
...
11130
)
I see that we're talking about sending a count
message to something that doesn't have it (maybe it's a NSCFString?), but is there any way to figure out what a/the named reference to that instance (0x3b0ebb0) refers to?
© Stack Overflow or respective owner