
Right-click the js file in the left panel, choose Debug As -> Debug Configurations menu. Double click the first column of each code line to set a breakpoint. Write some JavaScript code in the test.js file. Please use `node –inspect` or `node –inspect-brk` instead. (node:10012) DeprecationWarning: `node –debug` and `node –debug-brk` are invalid. I recommend you use node version 7.10.1 because it is a more stable version, if you use version 8 or 9 when you start debugging, it may through the below error message. Check the checkbox before the JavaScript runtime that you want to use and click Apply and Close button. Click the Finish button, it will return back to the Runtimes list page. In the Add JavaScript Runtime Install dialog, select node.exe from your install directory to the location input box ( if you run the eclipse in macOS or Linux you can run the command which node to get the node binary file installed directory path( it is usually /usr/local/bin/node on macOS and Linux ), and the command node -v can return the installed node version.), give it a name in the second input box, input node start arguments in the third input box if you have. I recommend you install node.js windows binary edition which is unzipped from a zip file.
You can read the article How To Install Node JS In Windows to learn more. This needs you first install node.js on your PC.
Click Add button to add Node.js runtime environment. If you do not have an existing node runtime installation, you can click Add button to add one. Choose Node.js Runtime in the right JavaScript Runtimes dropdown list. Click JavaScript -> Runtimes menu in left panel.
Click Eclipse toolbar Window -> Preferences menu. Setup Debug Runtime Configuration.īefore you can debug your JavaScript file, you must first create a debug configuration follow the below steps. Now you can see test.js in the left project explorer.
Select saved folder and input JavaScript file name in next dialog then click Finish button. In the pop-up dialog, choose JavaScript -> JavaScript Source File as below.
Right-click JavaScript project name in left project explorer panel.Click the Next button, input project name, and select workspace, click the Finish button to create the JavaScript project successfully.Choose JavaScript Project in New Project popup dialog. If you use Eclipse Neon version 3, then click File -> New -> Project menu.If you do not know how to do it, please read the article Beginner’s Guide For Install JDK(Java Development Kit) And Eclipse In Windows. Install JDK and Eclipse IDE on your Windows PC.