Skip to content
Miroslav Bajtoš edited this page Mar 17, 2014 · 2 revisions

Node Inspector provide debug logs to simplify troubleshooting.

Setup

To enable debug logs, include one of Node Inspector filters in the environment variable DEBUG.

Unix (Linux, Mac OSX)

$ DEBUG={filter} node-inspector
# or
$ DEBUG={filter} node-debug app.js

Windows

C:\src> set DEBUG={filter}
C:\src> node-inspector
# or
C:\src> node-debug

Filters

All debug logs are prefixed with node-inspector.

  • DEBUG=node-inspector* prints everything
  • DEBUG=node-inspector:protocol:* dumps DevTools and V8 debugger communication.

See also

Documentation of the debug module: https://github.com/visionmedia/debug#conventions