Debugging Node.js using node-inspector in Google Chrome

Debugging in the command line has never really been something that most JavaScript developers have much experience with. By far, the most common debugging tool for JavaScript is the browser's developer toolkit and its associated debugging tools. These tools, popularized with utilities such as Mozilla's firebug or Chrome's own developer toolkit, allow developers to set breakpoints, inspect values, and evaluate expressions all within their web browser.

Wouldn't it be great to use this same debugging toolkit for the Node.js application? Until recently, the only way to accomplish this feat was by including a module called node-inspector into your application. However, since Node 8, this feature is actually a fully integrated feature of Node.js debugging. Let's explore how to debug our Node.js application using Chrome's developer tools.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.69.172