AppCode + Kotlin single step debugging = Sleep. Is...
# multiplatform
t
AppCode + Kotlin single step debugging = Sleep. Is this an IDE, plug-in compiler issue? Can we hope for relief?
k
It’s an lldb thing
Probably
t
It does come back, after about 5 minutes or so. So I just have to be strategic where I place my breakpoints. 🙂
If you replace
konan_lldb.py
in your local ~/.konan runtime, it should speed up (maybe)
For now, if building iOS, maybe take a look at this: https://hackernoon.com/kotlin-xcode-plugin-64f52ff8dc2a
For appcode, on my machine, the lldb script is here
~/.konan/kotlin-native-macos-1.2.1/tools/konan_lldb.py
t
And we know that AppCode is using that one, not one embedded in some plugin somewhere?
k
Yep. Live code demoed at a meetup
It will depend on what version of native you’re using
t
cool. i will try that out - found the same dir on my machine here
k
I’d love to know if it works for you. I’ve only tried appcode on my maching 🙂
t
Pretty f*ing cool. Installed new version, restarted AppCode (just in case), and now nearly no delay when stepping. Well done! Merge that damn thing! 😉
Stepping through a lambda makes it jump around in the file, though more testing required to know if that is the cause. Thank you.
k
Lambdas are problematic at times, but the script, at least my changes, have nothing to do with that. Xcode has the same issues. I suspect that will be tweaking the llvm output of the compiler (or the DWARF files output for debugging: https://en.wikipedia.org/wiki/DWARF).
t
Understood. I can live with jumping around in the file given the nice speed bump. Thanks again. Now back to trying to write some real code.
k
Good luck. Also thumbs up the PR if you get a chance: https://github.com/JetBrains/kotlin-native/pull/2972
t
Done!