Reputation: 93286
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
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
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
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