Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make -P (pdb) work better with exceptions triggered from events #10634

Merged
merged 1 commit into from Jul 10, 2022

Commits on Jul 5, 2022

  1. Make -P (pdb) work better with exceptions triggered from events

    Previously, if an exception was raised from an event listener, and the
    `-P` option was specified, the debugger would be started not for the
    original error but for the `ExtensionError` wrapping it that was
    raised by `EventManager.emit`.  That made it difficult to debug the
    error.
    
    With this change, when `-P` is specified, wrapping of errors in
    `ExtensionError` is disabled, which allows pdb to debug the original
    error.
    jbms committed Jul 5, 2022
    Copy the full SHA
    66f9ee4 View commit details
    Browse the repository at this point in the history