对于libc++abi.dylib: terminate_handler unexpectedly threw an exception 异常处理如何调试错误

来源:互联网 发布:网络里认识了你歌曲 编辑:程序博客网 时间:2024/06/08 09:32


在编程过程中,应正确使用try-catch,在iOS开发过程中,对于libc++abi.dylib: terminate_handler unexpectedly threw an exception libc++abi.dylib: terminate_handler unexpectedly threw an exception  异常,一种方法可以通过打断点的方法调试到相应的代码,但对于出现的错误具体信息,就需要把异常打印输出出来,

可以使用

  1. @try{  
  2.    
  3.     }  
  4.     @catch(NSException *exception) {  
  5.         NSLog(@"异常错误是:%@", exception);  
  6.     }  
  7.     @finally {  
  8.           
  9.     }  

1 0
原创粉丝点击