Pytest plugin for trepan debugger.
Project description
Abstract
A pytest plugin for running the trepan debugger
Using
After installing, to set a breakpoint to enter the trepan debugger:
import pytest def test_function(): ... pytest.trepan() # get thee into the debugger! x = 1 ...
The above will look like it is stopped at the pytest.trepan() call. This is most useful when this is the last statement of a scope. If you want to stop instead before x = 1 pass immediate=False or just False:
import pytest def test_function(): ... pytest.trepan(immediate=False) # same as py.trepan(False) x = 1 ...
You can also pass as keyword arguments any parameter accepted by trepan.api.debug().
To have the debugger entered on error, use the --trepan option:
$ py.test --trepan ...
Project Details
Project code + issue track on github - https://github.com/rocky/pytest-trepan
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-trepan-1.0.1.tar.gz
(6.8 kB
view hashes)
Built Distributions
pytest_trepan-1.0.1-py3.6.egg
(7.4 kB
view hashes)
pytest_trepan-1.0.1-py3.5.egg
(7.5 kB
view hashes)
pytest_trepan-1.0.1-py3.4.egg
(7.5 kB
view hashes)
pytest_trepan-1.0.1-py2.7.egg
(7.4 kB
view hashes)
Close
Hashes for pytest_trepan-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 529dbcf4b2dd8b8e51a1dcb41851427fc64fc189329a00e549c09cd86fab3bf1 |
|
MD5 | 53891b955d8cffe6bf387f156faf80cb |
|
BLAKE2b-256 | 57e8faf22f4de258b35a71175e5e8a72c495c822def506ad555642ae72191a4e |