🏣 debug dojo, a place for zen debugging
Project description
🏣 debug dojo, a place for zen debugging
debug-dojo is a powerful Python package designed to streamline your debugging workflow directly from the terminal. It integrates seamlessly with popular debuggers and enhances your inspection capabilities with beautiful, readable output.
✨ Features
- Unified Debugging Interface: Easily launch your scripts or modules with your preferred debugger (
debugpy,pudb,pdb,ipdb). - Dojo Belts Gamification: Earn belts based on your debugging experience and track your progress.
- Enhanced Output with Rich: Leverages
richfor stunning, syntax-highlighted code, pretty-printed objects, and improved tracebacks. - Side-by-side Object Comparison: Quickly identify differences between two Python objects.
- Interactive Object Inspection: Dive deep into object structures with a powerful
inspectutility. - Simplified Breakpoints: Set breakpoints effortlessly with a concise helper function.
🚀 Installation
Install debug-dojo using pip:
pip install debug-dojo
For full debugger support, you might want to install optional dependencies:
pip install "debug-dojo[all-debuggers]"
💻 CLI Usage
Run your Python script or module with dojo run:
dojo run my_script.py
Check your progress and current belt with:
dojo belt
Specify a debugger, configuration file, or enable verbose output:
dojo run --debugger ipdb --config dojo.toml --verbose --module my_module
Run an executable command with debugging tools:
dojo run --exec pytest
🐍 Usage in Code
Integrate debug-dojo directly into your Python code for on-demand debugging and inspection utilities:
import debug_dojo.install
# Set a breakpoint and enter the debugger
# debug_dojo.install.b() # Equivalent to breakpoint()
object_1 = {"foo": 1, "bar": 2}
object_2 = [1, 2, 3]
# Pretty print an object with Rich
debug_dojo.install.p(object_1)
# Inspect an object using Rich
debug_dojo.install.i(object_1)
# Compare two objects side-by-side
debug_dojo.install.c(object_1, object_2)
# Enter the debugger (e.g., ipdb, pudb, pdb, debugpy based on config)
# debug_dojo.install.b()
📚 Documentation
For comprehensive instructions on installation, configuration, advanced usage, and API reference, please visit the official documentation.
🤝 Contributing
Contributions are welcome! Please refer to the development guidelines for details on how to set up your development environment and submit changes.
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 debug_dojo-0.9.0.tar.gz.
File metadata
- Download URL: debug_dojo-0.9.0.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1152b1ec39a5a594fa4506b0e18d32a73f250d93252282dcf6fb0ae38d485655
|
|
| MD5 |
876c81970f925bf14f8d757003083afb
|
|
| BLAKE2b-256 |
124d61f8d8e9802e2ff39c6def2590d184d175d771386eb8d03780ebf26dc1ec
|
Provenance
The following attestation bundles were made for debug_dojo-0.9.0.tar.gz:
Publisher:
pypi.yaml on bwrob/debug-dojo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
debug_dojo-0.9.0.tar.gz -
Subject digest:
1152b1ec39a5a594fa4506b0e18d32a73f250d93252282dcf6fb0ae38d485655 - Sigstore transparency entry: 1293386894
- Sigstore integration time:
-
Permalink:
bwrob/debug-dojo@494cd56ee565d46f159e2134651a33eea89f0ca3 -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/bwrob
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@494cd56ee565d46f159e2134651a33eea89f0ca3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file debug_dojo-0.9.0-py3-none-any.whl.
File metadata
- Download URL: debug_dojo-0.9.0-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77920f61ce86d7de56567606f78f24aa5dfc77f175e8b25b3246035a2703be03
|
|
| MD5 |
d24a0b35285c1f1faab9623710708db9
|
|
| BLAKE2b-256 |
92074dd8b258995558fb9fd3a946fcc70e08f02094b9a073ea6047262621fd16
|
Provenance
The following attestation bundles were made for debug_dojo-0.9.0-py3-none-any.whl:
Publisher:
pypi.yaml on bwrob/debug-dojo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
debug_dojo-0.9.0-py3-none-any.whl -
Subject digest:
77920f61ce86d7de56567606f78f24aa5dfc77f175e8b25b3246035a2703be03 - Sigstore transparency entry: 1293386902
- Sigstore integration time:
-
Permalink:
bwrob/debug-dojo@494cd56ee565d46f159e2134651a33eea89f0ca3 -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/bwrob
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@494cd56ee565d46f159e2134651a33eea89f0ca3 -
Trigger Event:
push
-
Statement type: