doc: add process.debugPort to doc/api/process.md

Fixes: https://github.com/nodejs/node/issues/18639

PR-URL: https://github.com/nodejs/node/pull/18716
Refs: https://github.com/nodejs/node/issues/18639
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matheus Marchini <matheus@sthima.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
flickz 2018-02-11 20:21:09 +01:00 committed by Matheus Marchini
parent 8b518edf11
commit 65ca369c07

View File

@ -621,7 +621,17 @@ process.
```js
console.log(`Current directory: ${process.cwd()}`);
```
## process.debugPort
<!-- YAML
added: v0.7.2
-->
* {number}
The port used by Node.js's debugger when enabled.
```js
process.debugPort = 5858;
```
## process.disconnect()
<!-- YAML
added: v0.7.2