<https://kotlinlang.slack.com/archives/C0922A726/p...
# kotlin-native
s
Depends on the platform you are running on. Generally yes: try using the debugger.
s
is there any way that does not involve an external debugger?
as i think im leaning torwards a way to print a backtrace from kotlin-native itself like
Throwable().printStackTrace()
prints a stack trace
i dont mind if the backtrace itself comes from a third party API like LLVM (if it is capable of doing backtraces)
such as,
Copy code
Linux.kt:15:abort:4
Linux.kt:26:a:2
Linux.kt:22:main:1
...
or similar
o
for macOS and iOS + debug builds backtrace includes symbolic information. For other platforms - not yet. Also note that in https://github.com/JetBrains/kotlin-native/pull/2814 we’re working on provision backtrace info as string which could be useful to you as well.
s
ok