Debug everything

npm install bugger
2 downloads in the last day
29 downloads in the last week
121 downloads in the last month


Build Status NPM version

Warning: Experimental


(sudo) npm install -g bugger


Start the script process

Debug runner for nodejs modules: bugger examples/simple.js

Load coffee-script modules: bugger examples/http_network.coffee

Pass parameters: bugger examples/server.js -- --port=3000

Open the devtools



  • -h, --help, -v, --version do what you'd expect them to do
  • --no-brk prevents a breakpoint to be added on the first line of the script
  • --webhost, --webport specifiy where the webserver with inspector will be listening

Status and warnings

What is working

  • Step-by-step debugging
  • SourceMaps for coffee-script
  • Variable introspection
  • stdout of the process is forwarded to console.log
  • Evalute expressions in the console
  • Monitor outgoing http(s) requests your script does (Network tab)
  • Heap snapshots and CPU profiles (Profiles tab)
  • Use console.{time, timeEnd, timeStamp}, network request and heap usage reporting (Timeline tab)
  • Live edit the running JavaScript code (not in 0.5.x)

What is missing

  • Better usage of the Events/Timeline section
  • Decision whether the "Resources"-tab makes any sense
  • Support for cluster/fork - maybe consider those kind-of (web) workers..?

What is hacked and/or broken

  • require doesn't work in the console, it maybe should be more repl-like
  • LiveEdit is only working for the compiled javascripts, not for the source mapped files. This appears to be a limitation of the WebKit developer tools.

Kudos to...

...the original projects

bugger was heavily inspired by node-inspector and nodebug. Unfortunately both those projects are pretty outdated and also I was on vacation and had way too much time.

WebKit inspector

bugger uses the Chrome developer tools as it's frontend.

npm loves you