-
Notifications
You must be signed in to change notification settings - Fork 333
Debugging
James Michael DuPont edited this page Oct 23, 2015
·
8 revisions
Debugging can be done via the Node Inspector https://github.com/node-inspector/node-inspector
node-debug pump
You will need this patch https://github.com/e14n/pump.io/pull/1119
This enables debugging for the forked processes.
Usage :
In your pump.io.json add the following
"debug" : "--debug-brk=5859", also set the child processes to one
"children": 1, Then run
node-debug bin/pump -c pump.io.json
Connect to the debugger http://127.0.0.1:8080/?ws=127.0.0.1:8080&port=5858
Wait for the fork and switch to the child process http://127.0.0.1:8080/?ws=127.0.0.1:8080&port=5859