首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

no stack traces seemed to work

2012-08-28 
no stack traces seemed to work.[sizemedium]http://stackoverflow.com/questions/7841610/xcode-4-2-de

no stack traces seemed to work.
[size=medium]http://stackoverflow.com/questions/7841610/xcode-4-2-debug-doesnt-symbolicate-stack-call

static void uncaughtExceptionHandler(NSException *exception) {    NSLog(@"CRASH: %@", exception);    NSLog(@"Stack Trace: %@", [exception callStackSymbols]);    // Internal error reporting}

Next, add the exception handler to your app delegate:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{       NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);    // Normal launch stuff}[/size]

热点排行