Debug Node .. Finally (It shall be Simpler)

Node-Inspector … https://github.com/node-inspector/node-inspector

  1. npm install -g node-inspector
  2. node –debug-brk web.js (web.js here the node script)
  3. node-inspector & (open in new tab caonsole)
  4. http://127.0.0.1:8080/debug?port=5858

Debug like you do in Chrome (browser side)

Node code debugged

Advertisements