# Debugging Tests

Running tests through testrepository makes it difficult to use pdb for debugging them. oslotest includes `oslo_debug_helper` to make using pdb simpler/possible.

First, add a pdb call to the test code:

    import pdb; pdb.set_trace()

Then run the tests through `oslo_debug_helper` like

    $ oslo_debug_helper [tests to run]

or

    $ tox -e venv -- oslo_debug_helper [tests to run]

See also

- https://wiki.openstack.org/wiki/Testr

this page last updated: 2026-07-15 05:31:37

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug