diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 16aba5c3bcd..fa544736c54 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(); }