cool hit counter Using trycatch in iOS development to get the cause of program crashes_Intefrankly

Using trycatch in iOS development to get the cause of program crashes


Copyright: This is an original post by the blogger and may not be reproduced without the blogger's permission. https://blog.csdn.net/u010105969/article/details/80256943

Background.

It's common to encounter program crashes in development, and it's our job to write bugs and fix them. However some crash causes, even if we interrupt the point console, do not output the cause of the program crash. At this point, if we use try catch we may catch the real cause of the crash and tell us the reason.

Code.

try catch

Reproducible code.

@try { // Code that may crash } @catch (NSException *exception) { // Caught exceptionsexception NSLog(@" Errors caught:%@", exception); } @finally { // Results processing }

That concludes this post, may you all work less overtime for more pay, and have girlfriends for all gays and boyfriends for all women.


Recommended>>
1、User feedback some personal suggestions for the Rafy development framework
2、The most comprehensive DNN overview paper detailing feedforward convolutional and recurrent neural network techniques
3、Do you really dare to play Death Trap the VR escape room game that even Bond would have trouble escaping
4、Rexchip Announces 81 NNAPISDK Develop for Face Recognition Merchandise Recognition Fatigue Detection and More
5、nfc development

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号