Skip to main content

debug dojo

🏣 debug dojo, a place for zen debugging

PyPi Version PyPI pyversions downloads license pre-commit.ci status

debug-dojo is a standalone, zero-configuration Python debugger and runner built around dpdb—an IPython-powered interactive debugger with rich terminal panels, inline variable diffs, and built-in object inspection.

✨ Features

  • Zero-Install & Zero-Config: Run any script directly with uvx debug-dojo script.py. Automatically discovers your project's .venv and leaves no configuration, cache, or history files behind.
  • Opinionated dpdb Debugger: Combines IPython tab completion and syntax highlighting with Rich tables (w, a, b, display, h), panels (whatis, psource, pinfo), adaptive source context, and an inline frame context banner (Δ Changed, ↳ Line, ↩ Return, 👁 Watch).
  • Automatic Post-Mortem: Unhandled exceptions render a Rich traceback and drop directly into a dpdb post-mortem session at the failing frame.
  • Built-in Inspection Shortcuts: Injects b() (breakpoint), p(obj) (Rich print), i(obj) (Rich inspect), and c(obj1, obj2) (side-by-side comparison) into builtins.

🚀 Quick Start

Run any Python script directly with uvx:

uvx debug-dojo my_script.py

Or install debug-dojo into an environment with uv:

uv pip install debug-dojo

💻 CLI Usage

Run a Python script, executable command, or module directly with debug-dojo (or the dojo alias), optionally seeding breakpoints from the command line without editing the file:

debug-dojo my_script.py arg1 arg2
debug-dojo -b 42 -b process_data my_script.py
debug-dojo pytest -k test_feature
debug-dojo my_package.my_module

🐍 Usage in Code

Import debug_dojo.install in your Python code to configure dpdb and inject helpers (b, p, i, c) into builtins:

import debug_dojo.install

object_1 = {"foo": 1, "bar": 2}
object_2 = [1, 2, 3]

# Pretty print an object with Rich
p(object_1)

# Inspect an object using Rich
i(object_1)

# Compare two objects side-by-side
c(object_1, object_2)

# Enter the dpdb debugger
# b()

Or use the standard pdb / ipdb-compatible top-level functions and PYTHONBREAKPOINT hook directly:

import debug_dojo

debug_dojo.set_trace()
# debug_dojo.post_mortem()
# debug_dojo.pm()

📚 Documentation

For CLI flags, dpdb interactive commands, and API reference, visit the official documentation.

🤝 Contributing

Contributions are welcome! Refer to the development guidelines for instructions on setting up the development environment and running verification checks.

Metadata

Release files for debug-dojo 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for debug-dojo 0.10.0
File Size Uploaded Provenance Actions
debug_dojo-0.10.0.tar.gz 51.5 kB With provenance Details for debug_dojo-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for debug-dojo 0.10.0
File Interpreter ABI Platform Actions
debug_dojo-0.10.0-py3-none-any.whl Python 3 none any Details for debug_dojo-0.10.0-py3-none-any.whl

Total release size: 86.3 kB

Release files / debug_dojo-0.10.0.tar.gz

Download URL debug_dojo-0.10.0.tar.gz
Size 51.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5d788754b8d3fe1a6a427d4470eac5c94d0109fb330315915848b7bf7834eab3
BLAKE2b-256 checksum
How to use checksums
d6f222bc386400c5ec8a3039f1616cd511a1049c1d404c135f16a2ef9adebba6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / debug_dojo-0.10.0-py3-none-any.whl

Download URL debug_dojo-0.10.0-py3-none-any.whl
Size 34.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45d54177da4e053cff63ff05b0501be3bc80944f24f62f02ffbaa34db0400d79
BLAKE2b-256 checksum
How to use checksums
1ec629dd3bca862777ce0a7e26b55d8b124c9d306b7a0646fd4123fe257fb98c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Security for debug-dojo 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for debug_dojo-0.10.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page