- node-inspector
- node-webkit-agent
- node-codein
npm install -g node-inspector
node --debug server.js
node-inspector
- Navigate to http://localhost:8080/debug?port=5858
- Surprisingly slow
- Full Chrome debugger (breakpoints, inspecting on hover, watching, call stacks, etc).
{ devDependencies: "node-webkit-agent": 0.0.4 }
npm install
require("node-webkit-agent");
node server.js
kill -SIGUSR2 <node pid>
- Navigate to http://c4milo.github.com/node-webkit-agent/19.0.1084.46/inspector.html?host=localhost:1337&page=0 (0.6.x) or http://c4milo.github.com/node-webkit-agent/21.0.1180.57/inspector.html?host=localhost:8080&page=0 (0.8.x)
- Implements the webkit developer tools protocol
- Author of node-inspector (Danny Coates) wants you to use it
- Not fully implemented (by far). Implements CPU and Heap profiling, but not "normal" debugging tools.
{ devDependencies: "node-codein": "1.0.1" }
npm install
require("node-codein");
node server.js
- Navigate to http://localhost:55281
- That's it? Only a console.
- Slow.