diff --git a/debug.cpp b/debug.cpp index d8c95170..04b0763e 100644 --- a/debug.cpp +++ b/debug.cpp @@ -71,6 +71,11 @@ warn (const char *msg) //////////////////////////////////////////////////////////////////////////////// static void abort_with_trace (void) { + // Manually trigger a breakpoint if possible so that the debugger won't + // silently dump us some place without further information. + // eg, CLion/GDB/Win32 silently dropping us out of the session. + breakpoint (); + // If this is because of an exception we may as well rethrow and hope that // the system will print exception data during the abort process. //