From 0ba353608fb6315e2dfaab6d767aa92c05628b71 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 13 Aug 1998 13:33:16 +0000 Subject: Add DebugBreak() call to Py_FatalError() for Mark Hammond (only on Win32 in Debug mode). --- Python/pythonrun.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 16aba5c..fa54473 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1025,7 +1025,10 @@ Py_FatalError(msg) OutputDebugString("Fatal Python error: "); OutputDebugString(msg); OutputDebugString("\n"); +#ifdef _DEBUG + DebugBreak(); #endif +#endif /* MS_WIN32 */ abort(); } -- cgit v0.12