3

Is there a way to run a JavaScript file directly in NetBeans or Eclipse?

I feel it's time consuming to fire up a terminal, browse to that file and run it with node all the time.

3 Answers 3

5

Another NetBeans Node.js plugin with a Node.js project type and npm integration (I am the author of it) is described in NetBeans Tools for Node.js

3

Yes, you can debug using Rhino in "Run As" without leaving Eclipse: http://wiki.eclipse.org/JSDT/Debug http://www.eclipse.org/webtools/jsdt/debug/

If you'd like to debug it remotely on a Node.js instance, you can use: https://github.com/ry/node/wiki/Using-Eclipse-as-Node-Applications-Debugger

If you'd like to remote debug a Chrome/Chromium browser: http://code.google.com/p/chromedevtools/wiki/EclipseDebugger

The latter two options will use V8, which is Google's JS engine behind Chrome, which has also been implemented in Node.js. The first option will use Rhino, which is Mozilla's JS engine.

2

Yes, you can run a JavaScript file directly from the NetBeans IDE with the Node.js plugin: Download NodeJS plugin from netbeans.org

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.