node/doc/api
Joyee Cheung dd5f209213 inspector: throw error when activating an already active inspector
When the user tries to activate the inspector that is already active
on a different port and host, we previously just silently reset
the port and host stored in the Environment without actually doing
anything for that to be effective. After this patch, we throw
an error telling the user to close the active inspector before invoking
`inspector.open()` again.

PR-URL: https://github.com/nodejs/node/pull/33015
Fixes: https://github.com/nodejs/node/issues/33012
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2020-05-24 03:43:05 +02:00
..
addons.md doc: normalize C++ code block info strings 2020-05-23 17:21:20 +02:00
assert.md 2020-05-05, Version 14.2.0 (Current) 2020-05-05 20:24:37 +02:00
async_hooks.md async_hooks: move PromiseHook handler to JS 2020-05-09 07:52:22 +02:00
buffer.md doc: fix Buffer.from(object) documentation 2020-05-23 19:23:45 +02:00
child_process.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00
cli.md doc: mention --experimental-top-level-await flag 2020-05-23 17:29:42 +02:00
cluster.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00
console.md 2020-05-05, Version 14.2.0 (Current) 2020-05-05 20:24:37 +02:00
crypto.md doc: update function description for decipher.setAAD 2020-05-19 19:28:36 +02:00
debugger.md doc: reword possessive form of Node.js in debugger.md 2020-02-17 17:32:53 -08:00
deprecations.md module: deprecate module.parent 2020-05-24 03:38:39 +02:00
dgram.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00
dns.md dns: add dns/promises alias 2020-05-24 03:26:21 +02:00
documentation.md doc: add link to sem-ver info 2020-03-02 04:07:33 +00:00
domain.md doc,domain: use code markup/markdown in headers 2019-12-26 21:39:24 -08:00
embedding.md doc: normalize C++ code block info strings 2020-05-23 17:21:20 +02:00
errors.md inspector: throw error when activating an already active inspector 2020-05-24 03:43:05 +02:00
esm.md esm: doc & validate source values for formats 2020-05-21 12:59:50 +08:00
events.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00
fs.md doc: add fs.open() multiple constants example 2020-05-20 00:04:43 +02:00
globals.md doc: use code markup/markdown in headers in globals documentation 2019-12-26 21:39:26 -08:00
http2.md http2: do not modify explicity set date headers 2020-05-20 12:33:50 +02:00
http.md http: added scheduling option to http agent 2020-05-20 11:00:14 +02:00
https.md 2020-04-29, Version 13.14.0 (Current) 2020-04-30 00:24:31 +02:00
index.md doc: add basic embedding example documentation 2020-03-21 10:58:25 +01:00
inspector.md doc,inspector: use code markup/markdown in headers 2019-12-26 21:39:27 -08:00
intl.md tools: support full-icu by default 2019-10-03 15:21:26 -07:00
modules.md module: deprecate module.parent 2020-05-24 03:38:39 +02:00
n-api.md Revert "n-api: detect deadlocks in thread-safe function" 2020-05-23 17:45:42 +02:00
net.md doc: add warning for socket.connect reuse 2020-05-08 18:03:26 +02:00
os.md doc: fix markdown parsing on doc/api/os.md 2020-04-29 03:53:28 +02:00
path.md doc: fixed a grammatical error in path.md 2020-05-23 17:13:28 +02:00
perf_hooks.md doc: clarify about the Node.js-only extensions in perf_hooks 2020-05-19 22:16:10 +08:00
policy.md doc: remove personal pronoun usage in policy.md 2020-03-09 19:47:29 -07:00
process.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00
punycode.md doc,punycode: use code markup/markdown in headers 2019-12-26 21:39:30 -08:00
querystring.md doc,querystring: use code markup/markdown in headers 2019-12-26 21:39:30 -08:00
readline.md doc: fix readline key binding documentation 2020-05-20 17:05:01 +02:00
repl.md repl: add builtinModules 2020-05-23 15:37:02 +02:00
report.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00
stream.md doc: add comment about highWaterMark limit 2020-05-19 19:20:51 +02:00
string_decoder.md doc: add support encoding link on string_decoder.md 2020-03-11 17:06:13 +01:00
synopsis.md doc: move Usage and Example to same header level 2019-07-09 19:45:20 -07:00
timers.md doc,timers: use code markup/markdown in headers 2019-12-26 21:39:32 -08:00
tls.md doc: correct tls.rootCertificates to match implementation 2020-05-23 20:54:08 +02:00
tracing.md doc: remove dashes 2019-10-26 08:39:41 -07:00
tty.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00
url.md doc: fix typo in pathToFileURL example 2020-05-23 18:21:43 +02:00
util.md doc: add util.types.isArrayBufferView() 2020-05-02 10:32:26 +05:30
v8.md doc: clarify that v8.serialize() is not deterministic 2020-01-30 16:35:47 -08:00
vm.md 2020-05-19, Version 14.3.0 (Current) 2020-05-19 14:28:43 -07:00
wasi.md wasi: update start() behavior to match spec 2020-04-28 13:04:43 -04:00
worker_threads.md doc: add warnings about transferring Buffers and ArrayBuffer 2020-05-08 00:59:15 +02:00
zlib.md doc: fix LTS replaceme tags 2020-04-28 15:23:46 +02:00