Is it just me, or the kotlin stack traces do not i...
# kotlin-native
m
Is it just me, or the kotlin stack traces do not include the line numbers? Is there any way to have the line numbers in stack traces?
Copy code
kotlin.AssertionError: Expected <108>, actual <107>.
        at kfun:kotlin.Throwable.<init>(kotlin.String?)kotlin.Throwable (0000000000440470)
        at kfun:kotlin.Error.<init>(kotlin.String?)kotlin.Error (0000000000442030)
...
d
It’s not just you, line numbers are not implemented yet.
m
Okay, I understand. Is there any roadmap when will features like this be implemented?
l
Got the same question. Or are there anything like C/C++ debug symbol that we can restore line number by a stacktrace.
s
Kotlin/Native binaries compiled in debug mode include debug symbols. Btw, in this case line numbers are available in debugger.
d
Why not in stacktraces?
s
Because it is not supported yet.
l
there are issues tracking this at https://github.com/JetBrains/kotlin-native/issues/1816 and the harshly/inaccurately-titled https://youtrack.jetbrains.com/issue/KT-25510
👍 1
🙏 1
o
https://github.com/JetBrains/kotlin-native/pull/2479/ contains code needed for retrieving symbolic information from stacktrace
👍 3