-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inspector: restore 9229 as a default port #8550
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can you keep the commit abstract to max 50 chars?
Otherwise LGTM, but let's get @cjihrig to signoff as well and approve.
Some tools are now relying on 9229 to be node.js "inspector" port (I see Chrome extensions, some online blog posts, etc.) Also, having same default port values for old and new protocols may lead to some confusion, e.g. when tools are trying to autodiscover debuggable Node instances.
I've updated the commit message. |
Failure seems to be coming from "git gc" command execution. |
Is there a reason you didn't simply revert 9f1f7e2? If yes, can you at least mention in the commit log that you are rolling back that commit? |
Sorry, I'm going to opt out of signing off on this as I don't agree with the change. |
@cjihrig: can you elaborate on your concerns? I think debuggers have a valid use-case to require different protocols to run on different ports when trying to attach to existing node processes, or to auto-discover debuggable node processes. |
@ofrobots I didn't realize that this would preserve the fix for #8201 (TBH, I hadn't reviewed these changes at that point, assuming it was essentially a revert). That makes me OK with it. That said, I'm still worried if debuggers are relying on the port number to determine which protocol is used, as there is nothing stopping users from changing the port. I understand the auto-discovery point, as I'm one of the authors of the aforementioned Chrome extensions. |
/cc @roblourens @nodejs/diagnostics |
Can you review and sign-off? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks! Landed as 626a07d. |
Some tools are now relying on 9229 to be node.js "inspector" port (I see Chrome extensions, some online blog posts, etc.) Also, having same default port values for old and new protocols may lead to some confusion, e.g. when tools are trying to autodiscover debuggable Node instances. This is a partial revert of 9f1f7e2. This commit preserves the fix for issue #8201 bringing back the behavior that the old and new protocols run on different ports.run on different ports. PR-URL: #8550 Reviewed-By: ofrobots - Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
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)
Description of change
Some tools are now relying on 9229 to be node.js "inspector" port (I see
Chrome extensions, some online blog posts, etc.) Also, having same
default port values for old and new protocols may lead to some
confusion, e.g. when tools are trying to autodiscover debuggable Node
instances.
CC: @ofrobots, @cjihrig, @bnoordhuis