Registry / testing / pytest-pudb

pytest-pudb

JSON →
library0.7.0pypypiunverified

A pytest plugin that integrates the PuDB debugger, allowing you to drop into a full-screen debugger on test failures or at breakpoints. Current version 0.7.0. Infrequently maintained.

pip install pytest-pudb
INSTALL
IMPORT
SIG · PYTEST-PUDB
P
pytest-pudb
testingpythonv0.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Enable PuDB debugger during pytest. Use -p pudb or environment variable.

import os os.environ['PYTEST_PLUGINS'] = 'pudb' # Or use -p pudb # Then run: pytest --pudb
Debug
Known issues
gotchaThe `--pudb` flag must be used explicitly; just installing the plugin does not automatically activate the debugger.
fix
Run `pytest --pudb` or set the environment variable `PYTEST_PLUGINS=pudb`.
affects: all
deprecatedPython 2 support is deprecated. The plugin may not be compatible with Python 3.11+ if no active maintenance.
fix
Use Python 3.8-3.10 or consider alternative debugger plugins like pytest-pdb.
affects: 0.7.0
Errors
Common errors & fixes
ERROR: usage: pytest [options] [file_or_dir] ... pytest: error: unrecognized arguments: --pudb
The plugin is not installed or not activated.
fix
Ensure `pytest-pudb` is installed and run pytest with the `-p pudb` option.
ModuleNotFoundError: No module named 'pudb'
PuDB is not installed.
fix
Run `pip install pudb` in addition to `pytest-pudb`.
Upgrade
Version history
0.7.0latest on PyPI · released Oct 25, 2018
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
pytest-pudb — pip install pytest-pudb · libregistry