[issue9635] RFE(patch): add Py_BREAKPOINT and sys.breakpoint hooks

2010-08-18 Thread Dave Malcolm
Dave Malcolm 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' DebugBre

[issue9635] RFE(patch): add Py_BREAKPOINT and sys.breakpoint hooks

2010-08-18 Thread Dave Malcolm
New submission from Dave Malcolm : It's sometimes useful to be able to programatically inject a breakpoint when debugging CPython. For example, sometimes you want a conditional breakpoint, but the logic involved is too complex to be expressed in the debugger (e.g. runtime complexity of evalua