Skip to main content

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 ipdb if available

1.1

  • Fix trace() for proper readline support
  • Fix syntax error on Python 3

Metadata

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)

Source distribution for PyBug 1.2.1
File Size Uploaded Provenance Actions
PyBug-1.2.1.tar.gz 3.4 kB Without provenance Details for PyBug-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PyBug 1.2.1
File Interpreter ABI Platform Actions
PyBug-1.2.1-py3-none-any.whl Python 3 none any Details for PyBug-1.2.1-py3-none-any.whl

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

Security for PyBug 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page