This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
javascript.nodejs/src/org/netbeans/modules/javascript/nodejs/exec/NodeExecutable.java has a special support for detecting and executing on top of GraalVM. However (as GraalVM @ 0.13 doesn't support V8 protocol) debugging doesn't work. Moreover it would be "just" a V8 debugging of JavaScript while the debugger.jpda.truffle gives us a chance to do real multi language debugging. This issue is my attempt to connect NetBeans Node.js support with NetBeans Truffle debugger.
Initial implementation is shown at http://hg.netbeans.org/core-main/rev/TruffleNodeDebugger262752 Petr can verify I am using StartupExtender in a sort-of-OK way. Tomáš has to confirm that opening the NodeJsSupport this way is OK. Jan and Martin need to negotiate the option to pass to GraalVM node executable.
(In reply to Jaroslav Tulach from comment #1) > Petr can verify I am using StartupExtender in a sort-of-OK way. Seems to be ok from my point of view.
Jan pointed out that GraalVM@0.13 supports -J flags: http://hg.netbeans.org/core-main/diff/85854c884cbb/debugger.jpda.truffle/src/org/netbeans/modules/debugger/jpda/truffle/node/GraalVmStartupExtender.java All my changes are visible in http://hg.netbeans.org/core-main/rev/8215131c62a5 I am now able to start $ netbeans --jdkhome graalvm-0.13-dk and create a Node.js project, run it on GraalVM's node.js implementation and debug it (with Truffle Debug Plugin built-in).
TM01: Could we avoid making node.js API public? I really prefer to keep it as a friend API. Thanks.
TM01 is fixed in http://hg.netbeans.org/core-main/rev/b27aa1b15ed3
OK for me. Thanks.
Introducing new eager module to bridge between node.js and truffle debugger: http://hg.netbeans.org/core-main/rev/39b2dbdbc811 All current changes visible as http://hg.netbeans.org/core-main/rev/5b4996ba3f67
I just made the test for node coming from GraalVM installation more reliable. http://hg.netbeans.org/core-main/rev/1a8a3c34642f Is it ready to integrate? It has a go from me. :-)
Thanks for the patches and review, the branch TruffleNodeDebugger262752 is merged into trunk: http://hg.netbeans.org/core-main/rev/c4062ae9433f
I see [nbms-and-javadoc job](http://deadlock.netbeans.org/job/nbms-and-javadoc/) got finally blue in build #4744 on Aug 3rd, 2016, so I am trying: - build NetBeans at 92981beaa830 - e.g. tip of today - start with empty dir - use Plugin Manager to get Truffle debug support - also the trufflenode module is installed - debugging node.js project (when NB running on GraalVM) works I think we can verify this issue.