You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
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.