- node debug [script.js | -e “script” | <host>:<port>]
- 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.
In the above example, the path is not specified although the main.js file is located on desktop.