开发者

more detailed information about the exception in xcode

So开发者_Python百科 I am trying to troubleshoot why adding an item to my dictionary causes an exception.

It turns out that I used a NSDictionary instead of NSMutableDictionary.

However the exception I saw... setobject format exception was no help at all.

Where do you look in xCode to get detailed exception information? Or is this all that is given?


It's unfortunate that the emitted stacktrace contains the memory address of the method calls on the stack rather than their names.

I recommend using the debugger and setting a breakpoint at objc_exception_throw. The debugger can tell exactly where the exception was made and what the arguments were.

markjnet provides a nice writeup on exception debugging here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜