https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
s

Sanjeeviraj M

09/22/2023, 2:59 PM
is there any official recommendation/way to get proper stack traces in production build? without using https://github.com/rickclephas/NSExceptionKt/tree/master or crashkit iOS. use case - we are using own Crash tracker, not firebase or bugsnag
k

kpgalligan

09/22/2023, 3:11 PM
The hook lets you step in, but "proper stack traces" can be a complex topic in iOS. I'll actually point back to Rick's code here: https://github.com/rickclephas/NSExceptionKt/blob/master/nsexception-kt-core/src/c[…]in/kotlin/com/rickclephas/kmp/nsexceptionkt/core/NSException.kt. In summary, if your crash tracker just gets a stack trace string, that'll be fairly easy. It'll have some info, but not lines numbers, etc. "Proper" tracking requires the pointer addresses, DSYM files, etc.
👌 1
👍 1
2 Views