joyent/node — pull request #5397 by bajtos (2013-05-02 14:29:32+00:00)
Title: debugger, cluster: each worker has new debug port

Implemented support for debugging cluster workers. Each worker process
is assigned a new debug port in an increasing sequence.

I.e. when master process uses port 5858, then worker 1 uses port 5859,
worker 2 uses port 5860, and so on.

Introduced new command-line parameter '--debug-port=' which sets debug_port
but does not start debugger. This option works for all node processes, it
is not specific to cluster workers.

/cc @bnoordhuis