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

Set Stack Trace Mode for Exceptions

API reference for the stack trace mode on reported exceptions in Luciq. Choose how much trace detail is captured for each exception.

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

if let nonFatal = CrashReporting.report(exception) {
    nonFatal.stackTraceMode = .callerThreadOnly 
    nonFatal.report()
}
LCQNonFatalError *nonFatal = [LCQCrashReporting error:error];
nonFatal.stackTraceMode = LCQNonFatalStackTraceModeCallerThreadOnly

Below are the different modes available:

.full //default
.callerThreadOnly
LCQNonFatalStackTraceModeFull //default
LCQNonFatalStackTraceModeCallerThreadOnly

Last updated