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
Ability to stop debugger listening #42446
Comments
|
Here is a example how I start debugger for listening new connections: @Get('/signal/:signal')
async makeSignal(@Param('signal') signal: string) {
process.kill(process.pid, signal);
}If endpoing receives |
|
You can use the open() and close() methods from
I don't think there are any general purpose signals left for node to claim. SIGUSR2, for example, is in use by at least two popular modules. |
Then I am curious to know what are use cases to use |
|
The inspector module is for programmatic access to the debugger, what you are doing. SIGUSR1 is for non-programmatic access. |
|
"SIGUSR1" can work in the following situations: |
Thanks @theanarkh. This is a great example of |


What is the problem this feature will solve?
If main process receives
SIGUSR1then there are no way to stop debugger from listening new connectionsWhat is the feature you are proposing to solve the problem?
An additional NodeJS reserved signal should be ideal to stop listenning debugger.
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: