Skip to main content

PyBug extends Python's interactive debugger (pdb), making it simpler to add breakpoints to your code.

Project description

# PyBug - python debugging utilities

PyBug extends Python’s interactive debugger (pdb), making it simpler to add breakpoints to your code.

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.1

  • Fix trace() for proper readline support

  • Fix syntax error on Python 3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyBug-1.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyBug-1.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file PyBug-1.2.tar.gz.

File metadata

  • Download URL: PyBug-1.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyBug-1.2.tar.gz
Algorithm Hash digest
SHA256 19e010b581e5574b8ab63d6b12f202dffd984ed39a8cc6da5394dfab2a94330f
MD5 7e46ac25c7d7113e0e3026de73210709
BLAKE2b-256 4baa743e61c1a45682123da934a9a434c65a410794b8e8c19ff04f9573a333a3

See more details on using hashes here.

File details

Details for the file PyBug-1.2-py3-none-any.whl.

File metadata

  • Download URL: PyBug-1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyBug-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2319b21db19f9e3544c6a825cdadf3609077cfe873b4ca082ace0bd33439e34e
MD5 18c4cbcd906735a6e5472e8296b44af1
BLAKE2b-256 82a526628c7c9cf2408a935b56c11f7eb75a7ef3c85fddbb2a4e8ff178377116

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page