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-2.0.0.tar.gz
(7.2 kB
view hashes)
Built Distributions
pytest_trepan-2.0.0-py3.7.egg
(8.1 kB
view hashes)
pytest_trepan-2.0.0-py3.6.egg
(8.1 kB
view hashes)
pytest_trepan-2.0.0-py3.5.egg
(8.1 kB
view hashes)
pytest_trepan-2.0.0-py3.4.egg
(8.2 kB
view hashes)
pytest_trepan-2.0.0-py2.7.egg
(8.0 kB
view hashes)
Close
Hashes for pytest_trepan-2.0.0-py36-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 316c2d8e379f6165b8403305a0cb4d496d9bf5771900fdda68acb35a9c783481 |
|
MD5 | 680cebd9577a4d81856a977565f430cb |
|
BLAKE2b-256 | ce3b6d67fc3ea260393cf22d6dd92b2d13d360aaa83d3bb4b8b5531fa6881715 |
Close
Hashes for pytest_trepan-2.0.0-py34-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcde2b85431dc8122226ba44e43b5d56f1476342f29531fda820a5e13a877d8a |
|
MD5 | 2a48c19cfe700c656ee4d9a83657dab8 |
|
BLAKE2b-256 | 9dfbec93954b6a166e64a1ba844433d7079e3c5ab793a123ecc6023d12638960 |
Close
Hashes for pytest_trepan-2.0.0-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b9ef7800f9a02f77750e34872ce219aff29263c1cf89f25e2b409093fff391b |
|
MD5 | 53b5b3ee32c8ab5800c6af0268d17394 |
|
BLAKE2b-256 | 9146a14e1203c57d8d7bafb5965cf157d5cd74e67450091539d1745aebf6397d |