Reading Stacktrace in Objective-C?

I don't really like real-time debugging, but if necessary, I will.

Is there a way to find out what the line of code referenced by StackTrace in Objective-C means ? How about a variable? 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 are talking about sending a message countthat does not have it (maybe it is NSCFString?), But is there any way to find out which / named link to this instance (0x3b0ebb0) refers to?

+3
source share
1 answer

The stack here is mostly useless. Important here

-[NSCFString count]: unrecognized selector sent to instance 0x3b0ebb0

, a -count . . NSZombie , , .

, Build → Xcode, .

+6

Source: https://habr.com/ru/post/1745325/


All Articles