- Oct 02, 2018
- admin
- 0
Debugging Node.js:
Debugging a Node.js application can be done in three ways, using
- Core Node.js debugger
- Node Inspector
- Built-in debugger in IDEs
Core Node.js Debugger:
Node.js provides a simple built-in debugging tool for debugging the JavaScript file.
Syntax:
node debug filename
Debugging Commands:
Some of the important Node.js Debugging commands are listed below.
| COMMANDS | USES |
| cont | To continue execution till any debugger statement if any. |
| next | To stop execution at the next statement. |
| out | To step out of the function. |
| pause | In order to pause the running code. |
| step | To step in the function. |
| watch | In order to add an expression or a variable into a watch. |
| watcher | To see the value of all the expressions and variables that are added into the watch. |
Tags: Debugging NodeJs, NodeJS Tutorial
