Yes, 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:
node debug [script.js | -e “script” |<host>:<port> :]