Is there a way to get current line number in Kotli...
# kotlin-native
k
Is there a way to get current line number in Kotlin/Native? I found few info about using Throwable Stack Trace, but that doesn't seem to be in K/N?
a
with some parsing, this hack might work
Copy code
fun main() {
    println("got stacktrace ${Exception("").stackTraceToString()}")
}
(I think this is gross and I wouldn’t use it myself :) )