How to enable debugging in express app?

In different operative Systems, we’ve got following commands:

On UNIX operating system the command would be as follows:

$ DEBUG=express:* node index.js

On Windows the command would be:

set DEBUG=express:* & node index.js

From Webstrome IDE

C:\Program Files (x86)\JetBrains\WebStorm 2016.2.4\bin\runnerw.exe” “C:\Program Files\nodejs\node.exe” –debug-brk=61081 –expose_debug_as=v8debug E:\Development\nodejd\librarey\bin\www

Let us move on to the next advanced Express JS Interview Questions.

Leave a Reply