XCode只捕获特定的异常

时间:2014-10-06 12:50:54

标签: objective-c xcode debugging

如果控制台输出

,如何仅捕获XCode中的特定异常

喜欢只抓住这个例外

2014-10-06 14:48:58.226 app[80027:303] An uncaught exception was raised
2014-10-06 14:48:58.226 app[80027:303] *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
2014-10-06 14:48:58.226 app[80027:303] (
    0   CoreFoundation                      0x00007fff8b8f025c __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff90c13e75 objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff8b7efdd1 -

0 个答案:

没有答案