Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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/ bug.setbreak(42, “/path/to/”, “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
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
PyBug-1.1.tar.gz (2.8 kB) Copy SHA256 Checksum SHA256 Source Dec 29, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting