September 2017
Intermediate to advanced
450 pages
11h 24m
English
The DEBUG environment variable provides a namespace key for which debug namespace logs will be displayed, as follows:
DEBUG=express*
Using the express* namespace, we will be able to match a wide range of available express process namespaces, including express:router, express:router:layer, express:application, and our own custom express:blog-app.
The built-in debugger allows us to stop the execution of our application and interact with it to help determine the source of issues. The debug utility command line supports a number of commands and shorted aliases for commands to make working with the debugger easy. The following table presents Node.js debug utility commands and aliases:
| Command | Alias | Description |
| next | n | Executes ... |
Read now
Unlock full access