From 4a4a877b2ec2b6e0a34e5a34a907b94012ae4fbe Mon Sep 17 00:00:00 2001 From: flickz Date: Sun, 11 Feb 2018 20:21:09 +0100 Subject: [PATCH 1/4] doc: add process.debugPort to doc/api/process.md Fixes: https://github.com/nodejs/node/issues/18639 --- doc/api/process.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/api/process.md b/doc/api/process.md index 400cd26a123581..0bf66d40801519 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -630,7 +630,17 @@ process. ```js console.log(`Current directory: ${process.cwd()}`); ``` +## process.debugPort + +* {number} +A port number for the debugger to listen to. + +```js + process.debugPort = 5858; +``` ## process.disconnect() * {number} -A port number for the debugger to listen to. +The port used by Node's debugger when enabled. ```js process.debugPort = 5858; From ac43ad03850d6b4c14f29b6f77cd6a6a329a9b9a Mon Sep 17 00:00:00 2001 From: Oluwaseun Omoyajowo Date: Mon, 12 Feb 2018 18:16:39 +0100 Subject: [PATCH 3/4] Update process.debugPort description --- doc/api/process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/process.md b/doc/api/process.md index 324ed211e4a663..f3e21e34622ff1 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -636,7 +636,7 @@ added: v0.7.2 --> * {number} -The port used by Node's debugger when enabled. +The port used by Node.js's debugger when enabled. ```js process.debugPort = 5858; From 393d898ce7c587066761466b716188945ee00bf4 Mon Sep 17 00:00:00 2001 From: Oluwaseun Omoyajowo Date: Sat, 17 Feb 2018 23:10:11 +0100 Subject: [PATCH 4/4] Resolve Lint error --- doc/api/process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/process.md b/doc/api/process.md index f3e21e34622ff1..ca25e4ffb5a50d 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -639,7 +639,7 @@ added: v0.7.2 The port used by Node.js's debugger when enabled. ```js - process.debugPort = 5858; +process.debugPort = 5858; ``` ## process.disconnect()