Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to debug KSCrash in XCode? #398

Open
yuzhiyunAtTencent opened this issue Jan 25, 2021 · 7 comments
Open

How to debug KSCrash in XCode? #398

yuzhiyunAtTencent opened this issue Jan 25, 2021 · 7 comments

Comments

@yuzhiyunAtTencent
Copy link

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.

@ma125125t
Copy link

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

@simpleLong
Copy link

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

@Folobe26
Copy link

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).

@simpleLong
Copy link

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

@DevaLee
Copy link

DevaLee commented Dec 14, 2021

@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
Copy link

DevaLee commented Dec 14, 2021

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

@BlankConan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants