Express js Debugger

The most basic debugging tool in Express.js is console output. It has DEBUG module to internally log information about the request, response cycle, middleware functions, route matching, etc. This is not automatically displayed on the console, to see all the internal logs we need to set DEBUG environment variable at the start of the app.

Suppose, we want to turn on the debug at about.js. For this run the following command from the file directory.

set DEBUG=express:* & node index.js
Express.js Debugger