never_had_a_name
never_had_a_name

Reputation: 93286

Run JavaScript file in NetBeans/Eclipse?

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.

Upvotes: 3

Views: 10825

Answers (3)

Tim Boudreau
Tim Boudreau

Reputation: 386

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

Upvotes: 5

Daniel Kec
Daniel Kec

Reputation: 559

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

Upvotes: 2

mh.
mh.

Reputation: 832

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.

Upvotes: 3

Related Questions