I'm trying to setup a node.js project with netbeans, and everything seemed to go well and as documented until i wanted to try out the debugger... After a while of googling i found a not responded to post on the Netbeans forums:
https://forums.netbeans.org/topic67911.html
This is exactly the problem i am having as well.
Does anybody have some information or a workaround or any way to make the debugger work?
So once you run project/file, if some breakpoint should be hit, it will be. Therefore debug action is not enabled for HTML5 project, because it is the same as Run action. Basically it means you can debug JS in Chrome with NetBeans Connector, Embedded browser in IDE, Chrome on Android, Safari on iOS...
Open up Preferences > Settings and in the search box type in “node debug”. Under the Extensions tab there should be one extension titled “Node debug”. From here, click the first box: Debug > Node: Auto Attach and set the drop down to “on”. You're almost ready to go now.
NodeJS support for NetBeans, originally hosted on netbeans.org. Provides a project type and support for running NodeJS projects and files in the NetBeans IDE.
Netbeans 8.2 only supports the now deprecated V8 debugging protocol. Details here:- https://nodejs.org/en/docs/guides/debugging-getting-started/#legacy-debugger.
Node v7 is the last version to support V8 debugging. Downloads: https://nodejs.org/download/release/v7.10.1/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With