Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I debug a running node.js application from Eclipse?

Node inspector is not working for me, so instead of that, I am trying to debug a node application with Eclipse. I would like to debug a node.js instance that is running via the "npm start" command. However, whenever I debug a node application inside Eclipse, it doesn't debug the running instance, but a new instance.

like image 510
Alexander Mills Avatar asked Sep 21 '26 18:09

Alexander Mills


1 Answers

To answer my own question, I still haven't figured out how to get node-inspector to work, but I did succeed in debugging a running instance of a locally running node express project by installing the Enide Studio 2014 (Eclipse) plugins and running "debug as Node project". The Enide Studio download is located here:

http://www.nodeclipse.org/enide/studio/2014/

Update: That being said, you're probably much better off using Intellij/Webstorm or VSCode to develop Node.js applications, the latter is excellent and free.

like image 166
Alexander Mills Avatar answered Sep 23 '26 07:09

Alexander Mills



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!