Why not to use console.log()?
Using console.log to debug the code generally dives into an infinite loop of “stopping the app and adding a console.log, and start the app again” operations. Besides slowing down the development of the app, it also makes the writing dirty and creates unnecessary code. Finally, trying to log out variables alongside with the noise of other potential logging operations, may make the process of debugging difficult when attempting to find the values you are debugging.
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