Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ba3536

Browse files
committed
Add DebugBreak() call to Py_FatalError() for Mark Hammond (only on
Win32 in Debug mode).
1 parent 541f241 commit 0ba3536

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Python/pythonrun.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,10 @@ Py_FatalError(msg)
10251025
OutputDebugString("Fatal Python error: ");
10261026
OutputDebugString(msg);
10271027
OutputDebugString("\n");
1028+
#ifdef _DEBUG
1029+
DebugBreak();
10281030
#endif
1031+
#endif /* MS_WIN32 */
10291032
abort();
10301033
}
10311034

0 commit comments

Comments
 (0)