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.8.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.8.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: debug_dojo-0.8.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.7

File hashes

Hashes for debug_dojo-0.8.0.tar.gz
Algorithm Hash digest
SHA256 368f9a32050a1a667c870602751413c93067c1899150a3691d3c895f4498948d
MD5 e599719379abf2acaf84c45f2a510a8b
BLAKE2b-256 4770b002641170bdf1704e2c867b3cc09f28f58955677edb4e9e84ffcbb6eeaf

See more details on using hashes here.

Provenance

The following attestation bundles were made for debug_dojo-0.8.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.8.0-py3-none-any.whl.

File metadata

  • Download URL: debug_dojo-0.8.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.7

File hashes

Hashes for debug_dojo-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 328996b423742851b63e10c30299eaa7c8e9c364fc8eb6fa67fdd235efcf3dd1
MD5 67354ad405c500717521e9e233135af4
BLAKE2b-256 3a141af2276d5812c8ec51aa64037a322aeb73f8c249cacbedeced2828af71b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for debug_dojo-0.8.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