Chapter 12: Debugging Node.js
The asynchronous nature of JavaScript and Node.js makes the debugging process non-trivial. However, over the past decade, Node.js has matured as a technology, and the debugging capabilities and facilities have improved accordingly.
In this chapter, we will consider steps we can take to make our applications easier to debug. We'll also learn how to use modern tools to debug our Node.js applications. Later in the chapter, we'll learn about the diagnostic reports feature that is available in the latest versions of Node.js.
This chapter will cover the following:
- Debugging with Chrome DevTools
- Logging with Node.js
- Enhancing stack trace output
- Using diagnostic reports