Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
debugger: double ctrl+break on win should exit node
Browse files Browse the repository at this point in the history
Fixes #1780.
  • Loading branch information
indutny authored and ry committed Sep 27, 2011
1 parent f63a1f8 commit 0a42266
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/node.cc
Expand Up @@ -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

Expand Down

0 comments on commit 0a42266

Please sign in to comment.