Hey all, has anyone got any tips for getting bette...
# multiplatform
s
Hey all, has anyone got any tips for getting better stacktraces for exception thrown from the shared kotlin code on iOS specifically? Locally the stack traces are fine (example in thread), but in Firebase crashlytics I get this which isn't particularly helpful. I realise this is technically 😶 but I'm hoping it's close enough!
Copy code
Uncaught Kotlin exception: kotlin.RuntimeException: Test Crash From KMM
at 0   shared                              0x1088d2f4d        kfun:uk.co.mykmmtest.shared.feature.pokemon.PokemonRepositoryImpl.$getPokemonList$lambda-0$FUNCTION_REFERENCE$25.invoke#internal + 269
at 1   shared                              0x10885ca71        kfun:uk.co.mykmmtest.shared.SharedResult.Companion.$mapSuccess$lambda-5$FUNCTION_REFERENCE$5.invoke#internal + 353
at 2   shared                              0x108859c5b        kfun:uk.co.mykmmtest.shared.SharedResult.Companion#fold(uk.co.mykmmtest.shared.SharedResult<0:0,0:1>;kotlin.Function1<0:1,0:2>;kotlin.Function1<0:0,0:2>){0§<kotlin.Any>;1§<kotlin.Any>;2§<kotlin.Any?>}0:2 + 507
at 3   shared                              0x10885a5de        kfun:uk.co.mykmmtest.shared.SharedResult.Companion#mapSuccess(uk.co.mykmmtest.shared.SharedResult<0:1,0:0>;kotlin.Function1<0:1,0:2>){0§<kotlin.Any>;1§<kotlin.Any>;2§<kotlin.Any>}uk.co.mykmmtest.shared.SharedResult<0:2,0:0> + 238
at 4   shared                              0x10885cb5b        kfun:uk.co.mykmmtest.shared#mapSuccess__at__uk.co.mykmmtest.shared.SharedResult<0:1,0:0>(kotlin.Function1<0:1,0:2>){0§<kotlin.Any>;1§<kotlin.Any>;2§<kotlin.Any>}uk.co.mykmmtest.shared.SharedResult<0:2,0:0> + 123
v
https://github.com/touchlab/CrashKiOS although I soemtimes get stacktraces which are unreadable too
s
Ah brilliant that looks like what I need, cheers!