how easy is debugging kotlin javascript in the bro...
# javascript
d
how easy is debugging kotlin javascript in the browser? I have some js extension type code I'm thinking to port to kotlin because 1. it would be nice 2. I hate javascript . But I also don't want to make my life more complicated
k
Kotlin compiler generates source maps. See for example, Gradle settings here: https://kotlinlang.org/docs/reference/using-gradle.html#attributes-specific-for-js The similar thing available in IDEA and Maven.
g
You can put breakpoints inside chrome on the kotlin code. It is not working all the time. Sometimes when you are inside a lambda you can’t access variables.
k
@gaetan please, report the issue on YT
g
@konsoletyper ok, I’m going to make a small sample.