I need to be able to Debug JS code run by Nashorn i.e:
ScriptEngineManager sem = new ScriptEngineManager();
ScriptEngine engine = sem.getEngineByName("nashorn");
engine.eval("load (\"src/com/sap/rdl/runjs/file.js\");");
Now I need to add a breakpoint in the JS file and be able to step through the lines programmatically (implement a debugger).
I know intelliJ and NetBeans implemented this so it should be possible, yet I cannot find any API in Nashorn that allows stepping and/or mapping of lines or variables.
Any advice/links would be most welcome. Thanks in advance.