diff options
author | Guido van Rossum <guido@python.org> | 1998-08-13 13:33:16 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-13 13:33:16 (GMT) |
commit | 0ba353608fb6315e2dfaab6d767aa92c05628b71 (patch) | |
tree | 600aeb8826816b5c226c55ad41e76e9a3dcfdec3 /Python/pythonrun.c | |
parent | 541f241132a58f09c639dc6b70a2244d7d8cb541 (diff) | |
download | cpython-0ba353608fb6315e2dfaab6d767aa92c05628b71.zip cpython-0ba353608fb6315e2dfaab6d767aa92c05628b71.tar.gz cpython-0ba353608fb6315e2dfaab6d767aa92c05628b71.tar.bz2 |
Add DebugBreak() call to Py_FatalError() for Mark Hammond (only on
Win32 in Debug mode).
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 3 |
1 files changed, 3 insertions, 0 deletions
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(); } |