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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
pytest_trepan-1.0.0-py3.4.egg
(7.5 kB
view hashes)
Close
Hashes for pytest_trepan-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf9188298647fcb179376c36141ba64fd4066d3e748f773eeda0d8544fdf4114 |
|
MD5 | 1b65015d40854a48c9a5a3b3b31a0bdf |
|
BLAKE2b-256 | c41f52fab39c45e4bfd8724812c5c18a5c62f4021cf35679aa25b11e9f836997 |