For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set Stack Trace Mode for Errors

You can use the below API to set the stack trace mode you want to capture when reporting an error.

if let nonFatal = CrashReporting.error(error) {
    nonFatal.stackTraceMode = .callerThreadOnly 
    nonFatal.report()
}

Below are the different modes available:

.full //default
.callerThreadOnly

Last updated