Skip to main content

How can you enable debugging in Express.js app?

Updated 1 min readMarkdown
Part of seriesExpress
How can you enable debugging in Express.js app?

Express uses the debug module internally to log information about route matches, middleware functions that are in use, application mode, and the flow of the request-response cycle.

To see all the internal logs used in Express, set the DEBUG environment variable to express:* when launching your app.

$ DEBUG=express:* node index.js

Source:

Debugging Express. expressjs.com/en/guide/debugging.html.

About the author

  • Full Stack Developer with a passion for building web applications. PHP, Node.js, Laravel, MySQL, MongoDB. Love collaborating & making a difference

No comments yet. Be the first to comment.

More from this blog