Steps for debugging in Node
Step 1: Write the following code in the terminal window as shown below:
node --inspect-brk-filename.js
Step 2: Open your Chrome browser and write inspect as shown below:
Step 3: Now click on Open Dedicated DevTools for Node.
Step 4: Now, click on the Node.js icon. The terminal will show the following message:
Step 5: Other tools to help launch a DevTools window:
june07.com/nim
github.com/jaridmargolin/inspect-process
github.com/darcyclarke/rawkit
Node Debugging
Debugging is a concept to identify and remove errors from software applications. In this article, we will learn about the technique to debug a Node application.
Table of Content
- Why not to use console.log()?
- How to debug in Node?
- Steps for debugging in Node
- Additional Debugging APIs
- Drive with DevTools Protocol via WS port
- DevTools Protocol via require(‘inspector’)
Contact Us