Uh oh!
There was an error while loading. Please reload this page.
inspector: listen on process.debugPort - #8386
Conversation
jasnell
commented
Sep 2, 2016
LGTM if CI is green. |
addaleax
commented
Sep 5, 2016
@cjihrig this needs a rebase :) |
cjihrig
commented
Sep 9, 2016
@addaleax rebased. Sorry for the delay. PTAL |
cjihrig
commented
Sep 9, 2016
cjihrig
commented
Sep 10, 2016
CI failures look unrelated. Since this is semver major, can another CTC member take a look? Perhaps @ofrobots? |
cjihrig
commented
Sep 12, 2016
ping @nodejs/ctc, please. |
bnoordhuis
commented
Sep 13, 2016
LGTM |
1 similar comment
indutny
commented
Sep 13, 2016
LGTM |
This commit consolidates the debugging port used by the inspector and Node's legacy debugger. Fixes: nodejs#8201 PR-URL: nodejs#8386 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
cjihrig
commented
Sep 14, 2016
Final CI came back OK: https://ci.nodejs.org/job/node-test-pull-request/4040/ |
ofrobots
commented
Sep 15, 2016
Sorry that I missed the ping on this. The use of different ports between inspector and the old debug protocol was quite intentional due to (very valid) concerns raised by the Debugger implementers: See original PR: #7212. |
cjihrig
commented
Sep 15, 2016
Was this it?
Given that you can set the port manually, wouldn't debuggers have to be able to determine which protocol was being used with 100% certainty? |
The issue is that some debuggers support both the old protocol and new, and when a user requests that the debugger attach to a running process at port 5858, the debugger has no way of knowing with protocol to use. I think this was originally requested by the VSCode folks, but I can't seem to find the discussion (/cc @joshgav, @nojvek). |
joshgav
commented
Sep 15, 2016
Discussion on side-by-side ongoing at #8464, would appreciate input from you all there. |
joshgav
commented
Sep 15, 2016
/cc @nodejs/diagnostics |
ofrobots
commented
Sep 15, 2016
This commit adds a test for the debug port value in cluster workers using the inspector debugger. Refs: nodejs#8201 Refs: nodejs#8386 Refs: nodejs#8550 PR-URL: nodejs#8958 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Checklist
make -j4 test(UNIX), orvcbuild test nosign(Windows) passesAffected core subsystem(s)
inspector
Description of change
This commit consolidates the debugging port used by the inspector and Node's legacy debugger. This eliminates any chance of the two debuggers working side by side, but the inspector is currently an unofficial feature, and the legacy debugger should eventually be removed in favor of it.
Fixes: #8201