Skip to main content

🏣 debug dojo, a place for zen debugging

Project description

debug dojo

🏣 debug dojo, a place for zen debugging

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

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 rich for 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 inspect utility.
  • 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


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.9.0.tar.gz (21.6 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.9.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

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

Hashes for debug_dojo-0.9.0.tar.gz
Algorithm Hash digest
SHA256 1152b1ec39a5a594fa4506b0e18d32a73f250d93252282dcf6fb0ae38d485655
MD5 876c81970f925bf14f8d757003083afb
BLAKE2b-256 124d61f8d8e9802e2ff39c6def2590d184d175d771386eb8d03780ebf26dc1ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for debug_dojo-0.9.0.tar.gz:

Publisher: pypi.yaml on bwrob/debug-dojo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for debug_dojo-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77920f61ce86d7de56567606f78f24aa5dfc77f175e8b25b3246035a2703be03
MD5 d24a0b35285c1f1faab9623710708db9
BLAKE2b-256 92074dd8b258995558fb9fd3a946fcc70e08f02094b9a073ea6047262621fd16

See more details on using hashes here.

Provenance

The following attestation bundles were made for debug_dojo-0.9.0-py3-none-any.whl:

Publisher: pypi.yaml on bwrob/debug-dojo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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