Re: Debugging Node.js

2019-03-09 Thread Christian Lenz
Hi, as already mentioned here: https://issues.apache.org/jira/browse/NETBEANS-1320?focusedCommentId=16788710&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16788710 that one, who wants to jump in and fix it, please have in mind, that we don’t need again a hardco

Re: Debugging Node.js

2019-03-07 Thread Jessica Ryan
Bummer. Thanks for looking in to it, though! > On Mar 7, 2019, at 1:47 PM, Pete Whelpton wrote: > > Unfortunately, it seems that --inspect uses a different protocol > (v8-inspector) the --debug (the v8-debugger protocol supported by Netbeans). > Hopefully, some kind person will volunteer t

Re: Debugging Node.js

2019-03-07 Thread Pete Whelpton
Unfortunately, it seems that --inspect uses a different protocol (v8-inspector) the --debug (the v8-debugger protocol supported by Netbeans). Hopefully, some kind person will volunteer to write a v8-inspector debugger module for NB in the future, or add a temporary workaround such as starting node

Re: Debugging Node.js

2019-03-05 Thread Jessica Ryan
I tried! But failed. Thanks for the quick responses.. I tried modifying the hardcoded values in NodeExecutable.java, rebuilt, and, well, things are different, but still it’s a no go. I get the following expected output (which is what you get when running node --inspect src/mystuff.js): Debugg

Re: Debugging Node.js

2019-03-05 Thread Geertjan Wielenga
Be super-awesome, Jess! :-) Gj On Tuesday, March 5, 2019, Pete Whelpton wrote: > Hi Jessica, > > I believe it is: webcommon/javascript.nodejs/src/org/netbeans/modules/ > javascript/nodejs/exec/NodeExecutable.java > > There are a couple of constants near the top of the file: DEBUG_BRK_COMMAND >

Re: Debugging Node.js

2019-03-05 Thread Pete Whelpton
Hi Jessica, I believe it is: webcommon/javascript.nodejs/src/org/netbeans/modules/javascript/nodejs/exec/NodeExecutable.java There are a couple of constants near the top of the file: DEBUG_BRK_COMMAND & DEBUG_COMMAND If you want to be super-awesome and submit a pull request, the existing issue i

Re: Debugging Node.js

2019-03-05 Thread Geertjan Wielenga
Hi Jess, And welcome! Yes, someone else reported the same. On GitHub you’ll find the relevant code in the webcommon folder, or someone else will point you to the right spot, or I will in a few hours when I get back to my laptop. Gj On Tuesday, March 5, 2019, Jessica Ryan wrote: > Hiya folks, >

Debugging Node.js

2019-03-05 Thread Jessica Ryan
Hiya folks, I have a node.js project in Netbeans and would like to debug it. When I launch via the debug button, I get the following message on the console, and then a few seconds later, I get the following error. Console: "/bin/bash" "-lc" "\"/usr/local/bin/node\" \"--debug-brk=9292\" \"/Use