Skip to content

Get exception info which caused appliaction crash, only call one method, what others CSCrash will do.

Notifications You must be signed in to change notification settings

asunquan/CSCrashInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

CSCrashInfo

Get exception info which caused appliaction crash, only call one method, what others CSCrash will do.

一个辅助捕获程序崩溃信息的小玩意, 使用时只需调用一个方法即可.

/** 
 *  启动异常日志捕捉器
 */
- (void)startUncaughtExceptionHandler:(void(^)(NSString *name, NSString *reason, NSArray *callStack))completion;

回调信息解释

参数名 参数类型 参数解释
name NSString * 崩溃异常信息名如NSRangException
reason NSString * 导致崩溃异常发生的原因
callStack NSArray * 此时的堆栈信息

可选执行方法

/**
 *  是否需要将异常日志写到本地
 */
- (void)needWriteExceptionFile:(BOOL)isNeeded;

默认为NO, 如需写入可以设置为YES, 可以根据情况自行修改写入文件的具体内容.

MyBlog

About

Get exception info which caused appliaction crash, only call one method, what others CSCrash will do.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published