[issue9635] RFE(patch): add Py_BREAKPOINT and sys.breakpoint hooks
Dave Malcolm
report at bugs.python.org
Thu Aug 19 01:50:55 CEST 2010
Dave Malcolm <dmalcolm at redhat.com> added the comment:
> Note that when running on Linux when _not_ under a debugger, the
> default for SIGTRAP is to get a coredump:
> Trace/breakpoint trap (core dumped)
> so people should be strongly discouraged from adding these calls to
> their code.
Looks like Windows' DebugBreak has similar behavior here; according to:
http://msdn.microsoft.com/en-us/library/ms679297(VS.85).aspx
"If the process is not being debugged, the function uses the search logic of a standard exception handler. In most cases, this causes the calling process to terminate because of an unhandled breakpoint exception."
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9635>
_______________________________________
More information about the Python-bugs-list
mailing list