-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
src: allow inspector to be run on ephemeral port #12093
Conversation
This PR allows `node --inspect=0` or `node --inspect=192.168.3.1:0`. Its impossible to know in general whether any specific port will be available or not, so its quite useful to run the inspector on an ephemeral port, chosen by the operating system from its free ports.
3eca777
to
c4a465a
Compare
This will also change behavior of the debugger (e.g. --debug flag). Is this expected? |
Interesting, the But I would expect |
I think it would be nice to switch inspector tests to use :0 port and to have a dedicated test case to test default or explicitly specified port - this way it will be easier to run tests in parallel. Also, CI test failures seem to be caused by this PR. |
Default There is currently only 1 |
I'm still working through the tests, I've a slow machine. I agree that this feature may allow a number of the sequential tests to be run in parallel, but that should be done in a follow up, not here. |
cc @nodejs/diagnostics |
Way ahead of you, Sam: #5025 :-) Unfortunately, the CI is as red there as it is here. |
(I must admit I have a local branch with this fix as well - but never
uploaded it because I never gotten to fixing the tests ;) )
…On Tue, Mar 28, 2017 at 9:47 AM Ben Noordhuis ***@***.***> wrote:
Way ahead of you, Sam: #5025 <#5025>
:-) Unfortunately, the CI is as red there as it is here.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12093 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AARkrUaSyhATJrjPgyD4FHymyHWdKq6Yks5rqTmjgaJpZM4MrxhE>
.
|
Its impossible to know in general whether any specific port will be
available or not, so its quite useful to run the inspector on an
ephemeral port, chosen by the operating system from its free ports.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)