diff options
author | Jeremy Maitin-Shepard <jbms@google.com> | 2022-07-03 17:56:14 -0700 |
---|---|---|
committer | Jeremy Maitin-Shepard <jbms@google.com> | 2022-07-04 18:48:44 -0700 |
commit | 66f9ee4afd0dae2a0db139f17b62ec2b184ac0b4 (patch) | |
tree | 533eed8e6dbb544343d0719c7a98a34b965f4d43 /tests/test_ext_autodoc_automodule.py | |
parent | 7e76f2c30780bb910b4d53387fdc9d241b2feb1b (diff) | |
download | sphinx-git-66f9ee4afd0dae2a0db139f17b62ec2b184ac0b4.tar.gz |
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.
Diffstat (limited to 'tests/test_ext_autodoc_automodule.py')
0 files changed, 0 insertions, 0 deletions