diff options
Diffstat (limited to 'base/debug')
-rw-r--r-- | base/debug/debugger_posix.cc | 3 | ||||
-rw-r--r-- | base/debug/debugger_win.cc | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/base/debug/debugger_posix.cc b/base/debug/debugger_posix.cc index a5ab066..2df3c4c 100644 --- a/base/debug/debugger_posix.cc +++ b/base/debug/debugger_posix.cc @@ -159,6 +159,9 @@ bool DebugUtil::BeingDebugged() { void BreakDebugger() { DEBUG_BREAK(); +#if defined(NDEBUG) + _exit(1); +#endif } } // namespace debug diff --git a/base/debug/debugger_win.cc b/base/debug/debugger_win.cc index d1d47cd..51a067e 100644 --- a/base/debug/debugger_win.cc +++ b/base/debug/debugger_win.cc @@ -106,6 +106,9 @@ void BreakDebugger() { if (DebugUtil::AreDialogsSuppressed()) _exit(1); __debugbreak(); +#if defined(NDEBUG) + _exit(1); +#endif } } // namespace debug |