From 83154aa15db01f46c7f59744bd8f65ca570ac397 Mon Sep 17 00:00:00 2001 From: Sugendran Ganess Date: Thu, 6 Dec 2012 11:01:41 +1100 Subject: [PATCH] doc: Connecting debugger to existing node process --- doc/api/debugger.markdown | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/api/debugger.markdown b/doc/api/debugger.markdown index ed37f0c024..63f2d49c8b 100644 --- a/doc/api/debugger.markdown +++ b/doc/api/debugger.markdown @@ -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 ` - Connects to the process via the `pid` +* `node debug - Connects to the process via the URI such as localhost:5858