-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Listening to SIGUSR1 blocks debugger #19619
Comments
@nodejs/v8-inspector |
It depends on when the inspector is started. If it's activated at startup, then the JS code will override it. If it's activated later, it subsumes the JS listener. I think right now it's always started early ( I'd use guarded language: "It's possible to install a listener but doing so might interfere with the debugger." |
@bnoordhuis please let me know if the changes are okay or if additional edits are needed. Thanks. |
Updated the doc/api/process.md documentation to reflect that listening on SIGUSR1 could impact the debugger. Fixes: nodejs#19619
@bnoordhuis Do you expect this to always work/enable me to set the port at runtime?
|
Updated the doc/api/process.md documentation to reflect that listening on SIGUSR1 could impact the debugger. Fixes: #19619 PR-URL: #19709 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
Updated the doc/api/process.md documentation to reflect that listening on SIGUSR1 could impact the debugger. Fixes: #19619 PR-URL: #19709 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
I am not sure which is the correct behavior for an intercepted
SIGUSR1
, the documentation or the a test case. Can the code and/or documentation please be fixed?process documentation says:
But a quick test shows that the debugger is not started.
Code:
If you send a
SIGUSR1
onlyGot SIGUSR1
is printed. The typicalDebugger listening on ws://127.0.0.1:9229/66fb119d-2443-4bdf-80b1-6386995ba253
is not printed. You can also verify that the debugger didn't start with withnetstat -ap
.The text was updated successfully, but these errors were encountered: