Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.js 8.9.1 debugging not working with Netbeans 8.2

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?

like image 374
Izelude Avatar asked Dec 05 '17 18:12

Izelude


People also ask

How do I debug Node JS in NetBeans?

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...

How do I enable debug mode in node JS?

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.

Does NetBeans support node JS?

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.


1 Answers

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/

like image 147
DaveL Avatar answered Oct 09 '22 00:10

DaveL