home PYTHONJAVA
 

Node.js Debugger

Node.js provides a simple TCP based protocol and built-in debugging client. For debugging your JavaScript file, you can use debug argument followed by the js file name you want to debug.

Syntax:

  1. node debug [script.js | -e "script" | <host>:<port>]  

Example:

  1. node debug main.js  

If you make any error:

If you make any error in your js file source code or provide a wrong path on the Node.js command prompt then you will get the following result.






welookups is optimized for learning.© welookups. 2018 - 2019 All Right Reserved and you agree to have read and accepted our term and condition.