Skip to main content

🏣 Debugging dojo for Python developers

Project description

debug dojo

debug dojo

debug dojo, a place for zen debugging

PyPi Version PyPI pyversions

debug-dojo is a Python package providing utilities for enhanced debugging and inspection in the terminal. It leverages rich for beautiful output and offers helpers for side-by-side object comparison, improved tracebacks from rich, and easy integration with different debuggers -- debugpy, pudb, pdb, and ipdb.

CLI usage

Run your Python script with debugging tools enabled using the debug-dojo command:

dojo my_script.py

You can optionally set configuration, verbose mode, and specify the debugger type. Both script files and modules are supported:

dojo --debugger ipdb --config dojo.toml --verbose --module my_module

From the code

In the PuDB style, you can install all debugging tools and enter the debugging mode with a single command:

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

import debug_dojo.install; b()

p(object_1)             # Pretty print an object with Rich.
i(object_1)             # Inspect an object using Rich.
c(object_1, object_2)   # Compare two objects side-by-side.

Documentation

For instructions regarding installation, configuration and usage please visit documentation.

Changelog

v0.4.1 (2025-08-10)

release tag: v0.4.1

v0.4.0 (2025-08-10)

release tag: v0.4.0

  • New configuration model DebugDojoConfig for better structure.
  • Added support for debugger configuration in dojo.toml.
  • Updated dojo command to include debugger type in command call.
  • Configuration versioning allows for in-flight migration of old configurations.
  • Improved error handling in configuration loading.
  • Improved catching errors from target execution.

v0.3.2 (2025-07-28)

release tag: v0.3.2

  • New logo for the project.
  • Typer used for CLI implementation.
  • Dojo is configured via dojo.toml or pyproject.toml.
  • Support for debugpy and ipdb for debugging.
  • Fixed documentation and history.

v0.2.0 (2025-07-20)

release tag: v0.2.0

  • Added dojo command for easy debugging setup.
  • Added p() function for rich printing.
  • Added history file for tracking changes.
  • Moved to hatch for building and packaging.
  • Fixed pyproject.toml to point to GitHub repository as the homepage.

v0.1.0 (2025-07-19)

release tag: v0.1.0

  • Initial module to install debugging tools.
  • Debug mode utilities for PuDB, rich tracebacks, and object inspection.

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

debug_dojo-0.4.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

debug_dojo-0.4.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file debug_dojo-0.4.1.tar.gz.

File metadata

  • Download URL: debug_dojo-0.4.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.11

File hashes

Hashes for debug_dojo-0.4.1.tar.gz
Algorithm Hash digest
SHA256 77daca61ffb23f194918b5a50531fbc5bb33e1b54a911216800c6fff02a4f9e9
MD5 8d9304a8d39c67a13201937072ba74da
BLAKE2b-256 62094bc4f4e398c9a1491b8436383939e2ac07e0b5056987fb828ec251cf3cc7

See more details on using hashes here.

File details

Details for the file debug_dojo-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: debug_dojo-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.11

File hashes

Hashes for debug_dojo-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0a6870628ebd3b33391e9d0dc7983f60e7f362c10bf946e89b7738c26e975e7
MD5 cc24a1bb053e4946d9d39b2a92ab9e3b
BLAKE2b-256 b6e1e80b43336841c88b00a486f35ab9776df278adfe0bd95816a853859740d6

See more details on using hashes here.

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