KSCrash icon indicating copy to clipboard operation
KSCrash copied to clipboard

How to debug KSCrash in XCode?

Open yuzhiyunAtTencent opened this issue 4 years ago • 7 comments

I want to know how KSCrash works when a mach exception happened, especially how to get call stack, so I need to set breakpoints in KSCrash.

yuzhiyunAtTencent avatar Jan 25 '21 09:01 yuzhiyunAtTencent

@yuzhiyunAtTencent You can debuge KSCrash through KSLogger.Have a look at KSLogger.h.

ma125125t avatar Mar 03 '21 06:03 ma125125t

@yuzhiyunAtTencent Have you solved your problem? It seems that none of the demos he provided have the function of capturing logs

simpleLong avatar Apr 28 '21 03:04 simpleLong

You need to modify both lldb and KSCrash. As lldb handles mach exceptions without any options provided to users and kscrash forbiddens almost all crash log when traced (by lldb when you debug).

Folobe26 avatar Apr 28 '21 07:04 Folobe26

@Folobe26 Thank you, because of your tip, my problem is solved.

simpleLong avatar Apr 28 '21 08:04 simpleLong

@Folobe26 Thank you, because of your tip, my problem is solved.

how to do that, with Xcode I can not make breakpoint in
static void handleException(NSException* exception, BOOL currentSnapshotUserReported) , Thanks

DevaLee avatar Dec 14 '21 07:12 DevaLee

I want to know how KSCrash works when a mach exception happened, especially how to get call stack, so I need to set breakpoints in KSCrash.

have you resolved the problem? , please help me,I don't know to make breakpoint in KSCrash

DevaLee avatar Dec 14 '21 07:12 DevaLee

I want to know how KSCrash works when a mach exception happened, especially how to get call stack, so I need to set breakpoints in KSCrash.

have you resolved the problem? , please help me,I don't know to make breakpoint in KSCrash

+1,how to debug KSCrash by breakpoint

BlankConan avatar Feb 09 '23 08:02 BlankConan