Skip to main content

A simple package to add code highlighting to the python debugger (PDB).

Project description

PDB Color

Add some color to the python debugger.

Installation

Install with pip.

pip install pdbcolor

Setup

Python can be configured to use PDB Color by changing the PYTHONBREAKPOINT environment variable. To use PDB Color temporarily, add the PYTHONBREAKPOINT=pdbcolor.set_trace prefix before running your python script:

PYTHONBREAKPOINT=pdbcolor.set_trace python3 main.py

To make PDB Color the default for all Python sessions, set the PYTHONBREAKPOINT environment variable to pdbcolor.set_trace. On Mac and Linux, you can do this with the export command:

export PYTHONBREAKPOINT=pdbcolor.set_trace

Add this line to your terminal configuration file (e.g. .bashrc or .zshrc) to ensure the setting persists across terminal settings.

Usage

PDB Color is a drop-in replacement for PDB that simply adds color to PDB's outputs. See the PDB documentation for a PDB introduction.

Examples

Using PDB:

Code example using PDB

Using PDB Color:

Code example using PDB

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

pdbcolor-0.2.5.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

pdbcolor-0.2.5-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file pdbcolor-0.2.5.tar.gz.

File metadata

  • Download URL: pdbcolor-0.2.5.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pdbcolor-0.2.5.tar.gz
Algorithm Hash digest
SHA256 ddcf41348cd2cf581527235b00548ad4a719dce3e7df38a6697333a27e881a00
MD5 f35ca1cd2d3a210a255d21d98635de2c
BLAKE2b-256 bc638e6c83f8b96010867c30e6f4f604bbfa86d0b3938a5c11ec84d0e3eb3579

See more details on using hashes here.

Provenance

The following attestation bundles were made for pdbcolor-0.2.5.tar.gz:

Publisher: workflow.yml on Alex-JG3/pdbcolor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pdbcolor-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: pdbcolor-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pdbcolor-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c7f200e06b79c93d8c9172305425255e0a93eb0750e1efceebe54580cbc8989d
MD5 ed52806753c416e75101372272cbc3e6
BLAKE2b-256 aff0e5ba5aa5be7dfee5f1b2963a7cd05963aa1be6b9cfb7202cbeef4a297acf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pdbcolor-0.2.5-py3-none-any.whl:

Publisher: workflow.yml on Alex-JG3/pdbcolor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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