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
Built Distributions
File details
Details for the file pytest-trepan-2.0.0.tar.gz
.
File metadata
- Download URL: pytest-trepan-2.0.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8aa1c681780c4b5347465c7dad7cdb680d595be251179e938d6e81089c55021 |
|
MD5 | b6ee4623e58aa1b51797bff5e9eed06a |
|
BLAKE2b-256 | e1130e9967cc7f7cb67ec6ce4be551a5c1e5ac81f312b6f03a81e486c81d30f3 |
File details
Details for the file pytest_trepan-2.0.0-py36-none-any.whl
.
File metadata
- Download URL: pytest_trepan-2.0.0-py36-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3.6
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 316c2d8e379f6165b8403305a0cb4d496d9bf5771900fdda68acb35a9c783481 |
|
MD5 | 680cebd9577a4d81856a977565f430cb |
|
BLAKE2b-256 | ce3b6d67fc3ea260393cf22d6dd92b2d13d360aaa83d3bb4b8b5531fa6881715 |
File details
Details for the file pytest_trepan-2.0.0-py34-none-any.whl
.
File metadata
- Download URL: pytest_trepan-2.0.0-py34-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3.4
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcde2b85431dc8122226ba44e43b5d56f1476342f29531fda820a5e13a877d8a |
|
MD5 | 2a48c19cfe700c656ee4d9a83657dab8 |
|
BLAKE2b-256 | 9dfbec93954b6a166e64a1ba844433d7079e3c5ab793a123ecc6023d12638960 |
File details
Details for the file pytest_trepan-2.0.0-py27-none-any.whl
.
File metadata
- Download URL: pytest_trepan-2.0.0-py27-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 2.7
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b9ef7800f9a02f77750e34872ce219aff29263c1cf89f25e2b409093fff391b |
|
MD5 | 53b5b3ee32c8ab5800c6af0268d17394 |
|
BLAKE2b-256 | 9146a14e1203c57d8d7bafb5965cf157d5cd74e67450091539d1745aebf6397d |
File details
Details for the file pytest_trepan-2.0.0-py3.7.egg
.
File metadata
- Download URL: pytest_trepan-2.0.0-py3.7.egg
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc11a7c4ee38a7c7ba73481fda5dc98b75d4c31b42a324d368b9e48c335cdb46 |
|
MD5 | c1ae037d8afc56b3fe2e0072912b5c2f |
|
BLAKE2b-256 | 5c073e76b0244edb68af322cd7c26624f02d5666133dd8321a697d677610142a |
File details
Details for the file pytest_trepan-2.0.0-py3.6.egg
.
File metadata
- Download URL: pytest_trepan-2.0.0-py3.6.egg
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7327dab2c2d91de9123bce66842dbb1cf178527ca0bcc6a455e69eb45c72d749 |
|
MD5 | 01794e46b081402c8cde0849bf92e600 |
|
BLAKE2b-256 | 96d03d0a08adaf312394670b7ca95cc7667edf2e7b57a5570efca9419fa3c622 |
File details
Details for the file pytest_trepan-2.0.0-py3.5.egg
.
File metadata
- Download URL: pytest_trepan-2.0.0-py3.5.egg
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc1c07ff19cf9ff614293796de48f6f624bb1cbec8600fd5ab7018df8c688806 |
|
MD5 | a826c032b45bd2e25330759dd0694ec6 |
|
BLAKE2b-256 | e4dd675f4365e25c2ae0a7e761adc3f9acca634201c63f249b9e0d222164a361 |
File details
Details for the file pytest_trepan-2.0.0-py3.4.egg
.
File metadata
- Download URL: pytest_trepan-2.0.0-py3.4.egg
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d8fa8704d5ab96f1d805852eb5b4a2132781130a9fcd0f3c350692f76c8e650 |
|
MD5 | a8a44aaf3a4f6757ee7a0de3c5057172 |
|
BLAKE2b-256 | b93373c382ba6e2c6858c41d6521bac995028582fb0ef7bacf16bd91ce285639 |
File details
Details for the file pytest_trepan-2.0.0-py2.7.egg
.
File metadata
- Download URL: pytest_trepan-2.0.0-py2.7.egg
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce9286b5f36bb1021932cab3242c927ebf6d9f457a140069cf53881839be7597 |
|
MD5 | 9a84be216b8b82947850d224c5cb306e |
|
BLAKE2b-256 | 9407b9f4b6d96822626c903a46a162abc08f8543b525ea855f58c12d08e612d1 |