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:
Using PDB Color:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pdbcolor-0.2.2.tar.gz.
File metadata
- Download URL: pdbcolor-0.2.2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5f40f33eea4e3014f23c6f9a2f704d0303742cdfa5989aa1de1eb0212d4586d
|
|
| MD5 |
cc4808df6ab8c2e0c93f6b87f34f960d
|
|
| BLAKE2b-256 |
e89cb2e838240c0c2e4ecb04594e71d84c059344ed3f1a5baf81b09aebf1408d
|
Provenance
The following attestation bundles were made for pdbcolor-0.2.2.tar.gz:
Publisher:
workflow.yml on Alex-JG3/pdbcolor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pdbcolor-0.2.2.tar.gz -
Subject digest:
b5f40f33eea4e3014f23c6f9a2f704d0303742cdfa5989aa1de1eb0212d4586d - Sigstore transparency entry: 192639363
- Sigstore integration time:
-
Permalink:
Alex-JG3/pdbcolor@7444c0623876cc3832f74716e078dedbc12fad29 -
Branch / Tag:
refs/tags/0.2.2 - Owner: https://github.com/Alex-JG3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@7444c0623876cc3832f74716e078dedbc12fad29 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pdbcolor-0.2.2-py3-none-any.whl.
File metadata
- Download URL: pdbcolor-0.2.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6b9db05639ade19b96ec41d20f8c6554d5c9155ec55bfafecf7b6fb26148864
|
|
| MD5 |
16b9990eed454e7302c0a20dbb2a0cb0
|
|
| BLAKE2b-256 |
5b65d64893060ce10d09250f23d4d8d1a7014e468beb017dba0dba5a1938b7d6
|
Provenance
The following attestation bundles were made for pdbcolor-0.2.2-py3-none-any.whl:
Publisher:
workflow.yml on Alex-JG3/pdbcolor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pdbcolor-0.2.2-py3-none-any.whl -
Subject digest:
e6b9db05639ade19b96ec41d20f8c6554d5c9155ec55bfafecf7b6fb26148864 - Sigstore transparency entry: 192639364
- Sigstore integration time:
-
Permalink:
Alex-JG3/pdbcolor@7444c0623876cc3832f74716e078dedbc12fad29 -
Branch / Tag:
refs/tags/0.2.2 - Owner: https://github.com/Alex-JG3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@7444c0623876cc3832f74716e078dedbc12fad29 -
Trigger Event:
push
-
Statement type: