Questions And Answers

More Tutorials

NodeJS Remote Debugging

Use the proxy for debugging via port on Linux

If you start your application on Linux, use the proxy for debugging via port, for example:

socat TCP-LISTEN:9958,fork TCP: &

Use port 9958 for remote debugging then.

NodeJS run configuration

To set up Node remote debugging, simply run the node process with the --debug flag. You can add a port on which the debugger should run using --debug=.

When your node process starts up you should see the message

Debugger listening on port <port>

Which will tell you that everything is good to go.

Then you set up the remote debugging target in your specific IDE.

IntelliJ/Webstorm Configuration

1. Make sure that the NodeJS plugin is enabled
2. Select your run configurations (screen)
3. Select + > Node.js Remote Debug
4. Make sure you enter the port selected above as well as the correct host Once those are configured simply run the debug target as you normally would and it will stop on your breakpoints.


In this page (written and validated by ) you learned about NodeJS Remote Debugging . What's Next? If you are interested in completing NodeJS tutorial, your next topic will be learning about: NodeJS Database MongoDB with Mongoose.

Incorrect info or code snippet? We take very seriously the accuracy of the information provided on our website. We also make sure to test all snippets and examples provided for each section. If you find any incorrect information, please send us an email about the issue:

Share On:

Mockstacks was launched to help beginners learn programming languages; the site is optimized with no Ads as, Ads might slow down the performance. We also don't track any personal information; we also don't collect any kind of data unless the user provided us a corrected information. Almost all examples have been tested. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. By using, you agree to have read and accepted our terms of use, cookies and privacy policy.