Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

debugger: double ctrl+break on win should exit node

Fixes #1780.
  • Loading branch information...
commit 0a42266824edc10049f26659c83a35e304866617 1 parent f63a1f8
@indutny indutny authored ry committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/node.cc
View
5 src/node.cc
@@ -2384,9 +2384,12 @@ static bool EnableDebugSignalHandler(DWORD signal) {
if (!debugger_running) {
fprintf(stderr, "Hit Ctrl+Break - starting debugger agent.\n");
EnableDebug(false);
+ return true;
+ } else {
+ // Run default system action (terminate)
+ return false;
}
- return true;
}
#endif
Please sign in to comment.
Something went wrong with that request. Please try again.