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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s