From the course: Node.js: Debugging and Performance Tuning

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Introducing Node's built-in debugger

Introducing Node's built-in debugger

From the course: Node.js: Debugging and Performance Tuning

Start my 1-month free trial

Introducing Node's built-in debugger

- [Instructor] Node.js includes a debugger that's already built in. What is it and what can it do? Node's debugger is an out-of-process debugging utility, which means it's external to program execution. The debugger controls and provides deep inspection of a Node.js process. The debugger is accessible by a V8 inspector agent which can be configured as part of Node's startup options. There are a variety of clients for the inspector, including Chrome's DevTools and editors like VS Code. Node also includes a command line interface debugging client. We're gonna try all three of these in upcoming videos. You may be wondering, what about Node Inspector? It's a Node.js debugging interface, but it was deprecated by the built-in debugger since Node 6.3. It was a great project, but it's not necessary anymore. So what's the debugger useful for? The debugger can be used to watch expressions and variable values during execution. Breakpoints can be set within code or by using the debugger to pause…

Contents