]> granicus.if.org Git - python/commitdiff
Add DebugBreak() call to Py_FatalError() for Mark Hammond (only on
authorGuido van Rossum <guido@python.org>
Thu, 13 Aug 1998 13:33:16 +0000 (13:33 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 13 Aug 1998 13:33:16 +0000 (13:33 +0000)
Win32 in Debug mode).

Python/pythonrun.c

index 16aba5c3bcd2e7705ec6412f5ae01f49c54d964d..fa544736c540a22141eafd6621c68ebe08c1732c 100644 (file)
@@ -1025,7 +1025,10 @@ Py_FatalError(msg)
        OutputDebugString("Fatal Python error: ");
        OutputDebugString(msg);
        OutputDebugString("\n");
+#ifdef _DEBUG
+       DebugBreak();
 #endif
+#endif /* MS_WIN32 */
        abort();
 }