This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author fabioz
Recipients fabioz
Date 2018-07-11.18:07:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531332421.42.0.56676864532.issue34099@psf.upfronthosting.co.za>
In-reply-to
Content
Right now, debuggers can deal with handled exceptions by detecting the 'exception' event, but it's hard to know if the exception is handled or unhandled at that point (so, debuggers end up checking if it happens in a top-level function, but this isn't good if the user started the code and did a remote attach later on, where the top-level code is still user code).

My suggestion would be creating another event type (such as 'exception_return') which would be issued after the 'return' event with the same information passed on the 'exception' info so that debuggers can detect that some exception is unhandled (the 'return' would still be issued as usual to minimize breakage to existing debuggers).

Another option could be adding that information to the frame itself during a 'return' event (and then removing right after calling the debugger to avoid any cycles) -- although I think the other option is better to avoid making the frame bigger.
History
Date User Action Args
2018-07-11 18:07:01fabiozsetrecipients: + fabioz
2018-07-11 18:07:01fabiozsetmessageid: <1531332421.42.0.56676864532.issue34099@psf.upfronthosting.co.za>
2018-07-11 18:07:01fabiozlinkissue34099 messages
2018-07-11 18:07:01fabiozcreate