Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
4 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters