-
Notifications
You must be signed in to change notification settings - Fork 30k
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 aborts when another process is running the inspector #10858
Comments
#10861 changes the test so it uses autodiscovered port (so it does not conflict with another instance of the test running or with node --inspect). Not sure what is the desired behavior for running two instances of node with --inspect... |
IMO this should not abort, instead just
|
Assert was a bug, I created a pull request with a fix. That pull request also changes the message to be more in line with what the old debugger prints. As to "Are you running another node instance with --inspect?" - the error message needs to be generic as the code does not know if the failure is because the port is bound or if there's some other failure. |
This ensures that cctest can be ran concurrently with other instances of cctest or while the node is ran with --inspect. Ref: nodejs#10858 PR-URL: nodejs#10861 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This ensures that cctest can be ran concurrently with other instances of cctest or while the node is ran with --inspect. Ref: nodejs#10858 PR-URL: nodejs#10861 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This change also changes error message to make it consistent with the one printed by the debugger. Fixes: nodejs#10858 PR-URL: nodejs#10878 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This change also changes error message to make it consistent with the one printed by the debugger. Fixes: nodejs#10858 PR-URL: nodejs#10878 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Description:
Running
node --inspect
in the background causesmake cctest
to abort. The same thing for trying to runnode --inspect
twice.Reproduction:
Run
node --inspect
in one window, andmake cctest
in another window. The test should fail with:Alternative is to run
node --inspect
twice. Which gives me:/cc @nodejs/v8-inspector
The text was updated successfully, but these errors were encountered: