Skip to main content

pdbp (Pdb+) -- Improving pdb and fixing pdbpp (Pdb++).

Project description

pdbp (Pdb+)

pdbp (Pdb+) is a drop-in replacement for pdb and (unmaintained) pdbpp (Pdb++).

This fixes pdbpp (pdb++) to work in all environments. Sticky pdbpp mode is the default option.

To replace pdb with it, add import pdbp to an __init__.py file. In case that doesn't work, you can just load all of pdbp into pdb:

import pdb
import pdbp
for key in pdbp.__dict__.keys():
    pdb.__dict__[key] = pdbp.__dict__[key]

If you need to customize pdbp options:

if hasattr(pdb, "DefaultConfig"):
    pdb.DefaultConfig.filename_color = pdb.Color.blue
    pdb.DefaultConfig.line_number_color = pdb.Color.turquoise
    pdb.DefaultConfig.show_hidden_frames_count = False
    pdb.DefaultConfig.disable_pytest_capturing = True
    pdb.DefaultConfig.enable_hidden_frames = False
    pdb.DefaultConfig.truncate_long_lines = True
    pdb.DefaultConfig.sticky_by_default = True

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

pdbp-0.1.0.tar.gz (14.0 kB view hashes)

Uploaded Source

Built Distribution

pdbp-0.1.0-py3-none-any.whl (12.6 kB view hashes)

Uploaded Python 3

Supported by

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