Dropping Into the Debugger
pdb.post_mortem() on errors and failures.
This plugin implements
testOutcome() and will drop into pdb
whenever it sees a test outcome that includes exc_info.
beforeInteraction() before launching pdb and
afterInteraction() after. Other plugins may implement
beforeInteraction() to return
False and set
prevent this plugin from launching pdb.
The default configuration is equivalent to including the following in a
[debugger] always-on = False errors-only = False
- -D DEFAULT, --debugger DEFAULT
Enter pdb on test fail or error
Plugin class reference: Debugger
- class nose2.plugins.debugger.Debugger(*args, **kwargs)
Enter pdb on test error or failure
For ease of mocking and using different pdb implementations, pdb is aliased as a class attribute.
- pdb = <module 'pdb' from '/home/docs/.asdf/installs/python/3.10.4/lib/python3.10/pdb.py'>
Drop into pdb on unexpected errors or failures