Kotlin Debug Stepping - Text Editor

Is anyone writing and debugging Kotlin with command line tools and using a text editor like Notepad++, Sublime Text or VS Code to step debug? Is that even possible? VS Code in particular supports Java beautifully using a plugin by RedHat and a debug plugin by Microsoft.

Side Note: I use and love IntelliJ Ultimate but I’d like to get this working in other editors for a specific reason.

I don’t know if this will help but here you go: https://blog.takipi.com/how-to-write-your-own-java-scala-debugger/
JDWP

I don’t know if there are any tools out there already or if the JDWP even is the right approach, but I guess since Kotlin compiles down to JVM code this should be the right starting point. Obviously this will not work for Kotlin Native or Kotlin JS. And another disclaimer. I have no experience at all. Those where just the results of 5 minutes of google :slight_smile:

Thanks for the links and the heads up on JDWP. I’ll look into those. Kotlin compiles to the JVM and I’m assuming the symbols information is translated some how I just don’t know how exactly to hook into that process to provide things like step debugging. Maybe digging into JDWP will help.

I also started looking at JDI and wondered if that’s a proper direction. Does any one know a good tutorial on how the java command line debugging works? I’m sure projects like Eclipse are built upon some existing Java framework…but which one?