doc: Connecting debugger to existing node process
authorSugendran Ganess <sugendran@sugendran.net>
Thu, 6 Dec 2012 00:01:41 +0000 (11:01 +1100)
committerisaacs <i@izs.me>
Fri, 25 Jan 2013 01:16:19 +0000 (17:16 -0800)
doc/api/debugger.markdown

index ed37f0c..63f2d49 100644 (file)
@@ -136,3 +136,10 @@ breakpoint)
 The V8 debugger can be enabled and accessed either by starting Node with
 the `--debug` command-line flag or by signaling an existing Node process
 with `SIGUSR1`.
+
+Once a process has been set in debug mode with this it can be connected to
+with the node debugger. Either connect to the `pid` or the URI to the debugger.
+The syntax is:
+
+* `node debug -p <pid>` - Connects to the process via the `pid`
+* `node debug <URI> - Connects to the process via the URI such as localhost:5858