This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
Repl in node debug can only be exited using ctrl-c #5631
Closed
Description
Node debug allows you to drop into a repl at your current location using the repl
command. To exit this, the only allowed method is to use ctrl-c
since .exit
does not work. As shown here, the repl listens to SIGINT, but sending it a sigint with kill, breaks the debugger.
I'm not sure, but digging into the repl source seems to indicate that it only pays attention to SIGINT from the attached terminal, instead of in general. This is a problem if the debugger is a child process of a script, and SIGINT on the script causes an exit.
If .exit
acted the same as ctrl-c
during debugging, this problem would be solved.