O'Reilly logo

Mastering Web Application Development with Express by Alexandru Vlăduțu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Debugging

Even the most experienced developers introduce bugs into their applications, whether these represent typos or overlooked aspects. In this chapter, you will learn about tools and techniques that will aid us in our journey of fixing the broken pieces of our applications.

We will be covering the following topics:

  • Improving the error handler middleware to include more useful data
  • Using the Node core debugging technique in our own applications
  • Debugging with breakpoints
  • Connecting to a live application with the replify module
  • Removing debugging leftovers from our production code

A better error-handling middleware

As you have learned from the previous chapters, all the errors that are forwarded using the next callback in the middleware ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required