🏣 debug dojo, a place for zen debugging
Project description
debug dojo
🏣 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). - 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]"
💻 CLI Usage
Run your Python script or module with debug-dojo:
dojo my_script.py
Specify a debugger, configuration file, or enable verbose output:
dojo --debugger ipdb --config dojo.toml --verbose --module my_module
Run an executable command with debugging tools:
dojo --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.6.0.tar.gz.
File metadata
- Download URL: debug_dojo-0.6.0.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8375151981dea1059889fe37c3c2445352e5ea7e22988e8a5476b7335ac1f637
|
|
| MD5 |
1ae7926078ab8187945ebdd3032e95a9
|
|
| BLAKE2b-256 |
0a4d8edd545f74bd9eaa4a3f926942e7f014c5df4125078d1a96799e0b2903f7
|
File details
Details for the file debug_dojo-0.6.0-py3-none-any.whl.
File metadata
- Download URL: debug_dojo-0.6.0-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fad309dab6c53df42551f6b615359b565b93967f5fd2009d7e33e8ea09cabab3
|
|
| MD5 |
ae5301600921b0be430758752abb89ee
|
|
| BLAKE2b-256 |
97a41526ae117f49e871b7e10b252614ac4050aa8d931d0e25b7c13a0b3db3f0
|