I would like to develop a web-based frontend to debug Java programs (Java 8 or higher), preferably using node.js, hence JavaScript.
I stumbled upon JPDA. There we have
- JVM TI, which is a native interface
- JDWP, which is a low-level protocol
- JDI, which is a Java implementation to communicate with JDWP
The first one seems not suited. For the second, I couldn't find a JavaScript library that implements this protocol. To third, I am not sure, if this is suited either.
Besides those three, it is possible to open a shell with JavaScript and use JDB there. But then parsing would be necessary and it might not be every function available.
What would be a good/easy way to communicate with the JVM and get the information?