PyBug - python debugging utilities
PyBug extends Python's interactive debugger (pdb), making it simpler to add breakpoints to your code. Uses ipdb if available.
Usage examples:
# Like pdb.set_trace(), but shorter :) and works with nosetests.
import bug; bug.trace()
# Set a breakpoint at line 35 of package.module
bug.setbreak(35, "package.module")
# Set a conditional breakpoint at line 42 of /path/to/universe.py
bug.setbreak(42, "/path/to/universe.py", "name == 'hitchhiker'")
There are two notable features here that would ideally make it into the pdb module in the Python Standard Library:
-
Easily set a breakpoint at an arbitrary line in an arbitrary module. This is useful when debugging a third-party library where the code cannot easily be edited to add a set_trace() call.
-
Set a breakpoint in a module named by import path rather than file path.
Changes
1.2
- Use
ipdbif available
1.1
- Fix
trace()for proper readline support - Fix syntax error on Python 3
Release files for PyBug 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PyBug-1.2.1.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyBug-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / PyBug-1.2.1.tar.gz
| Download URL | PyBug-1.2.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5550d57c42c3d7c7e3f78bf94011c7fb94ba3ac01e1acb082b06d10a7471e712
|
|
BLAKE2b-256 checksum How to use checksums |
76a407d27f2b6a1fbf0607a5cdcbeaf016918d69793f15ebee60bcc13e7e4847
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / PyBug-1.2.1-py3-none-any.whl
| Download URL | PyBug-1.2.1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
839a15f5386ffa5d244dfedb0c0ddf5d26711005db18475f0ae4fe22f3b2e844
|
|
BLAKE2b-256 checksum How to use checksums |
517ddfe788024ace78a8103d1ed9297f36af6d6ecc3f745b24f01b1d5b2bc62d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |