Start with debugger
- Start terminal at the server root dir
node --inspect ./bin/www
With express:DEBUG=express:* node --inspect ./bin/www
- Chrome:
chrome://inspect
- Click: “Open dedicated DevTools for Node”
- Goto
console
tab to see log - Goto Sources->Node->file://->fileWhichYouWantToSetBreakpoint to set breakpoint