Skip to main content

Effortless debugging, error hints, profiling, and postmortem REPL for Python

Project description

PyBugMate

[PyPI-READY] Effortless, smart debugging and postmortem for every Python project. Track errors, see real data, get smart hints, and drop into a REPL instantly—zero setup!


✨ Features

  • Automatic error tracing: See which function crashed, with parameters and variable values.
  • Colorful, instant logs: [CALL], [RETURN], [PROFILE], [EXCEPTION]—all clear and readable!
  • Smart hints: Friendly, actionable tips for common Python mistakes.
  • Drop-in postmortem: On any unhandled error, instantly debug in a live REPL (IPython shell).
  • No config, zero boilerplate: Add two lines—works everywhere, from scripts to complex apps.

🚀 Installation

pip install pybugmate

🧑‍💻 Usage: Quick Start

Paste these lines at the top of your script: from pybugmate.postmortem import enable_postmortem
from pybugmate.autowrap import autowrap

enable_postmortem() # Step 1: Enable postmortem REPL for ANY unhandled crash !

Define your functions normally

def foo(x): return x+1

def bar(y): return foo(y) * 2

autowrap(globals()) # Step 2: Auto-wrap all your functions for smart tracing

(Call this after defining functions you want wrapped...)

Now call your functions as usual

result = bar(5) print(result)


💡 Why PyBugMate?

  • Faster bug hunts: Find errors instantly, with real context—no more print everywhere!
  • Perfect for learners: You get helpful advice for real bugs, not just code line numbers.
  • Works anywhere: CLI, notebooks, scripts, web apps, and more.

🌐 Links


PRs, issues, and stars are welcome !...
Built with ♥ by ANU.

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

pybugmate-0.1.2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

pybugmate-0.1.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file pybugmate-0.1.2.tar.gz.

File metadata

  • Download URL: pybugmate-0.1.2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for pybugmate-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ac7cd3ff23ee2e9929b85ccbd7272db8320dd3b8b4300e0d718da546ff17650a
MD5 ac03df51e43c25262a6cc608c12037a6
BLAKE2b-256 476247e8c54b581de279bd867acd3b71c09eb38e8242de872aa22aec6dbd1197

See more details on using hashes here.

File details

Details for the file pybugmate-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pybugmate-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for pybugmate-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9d777dfe494d238c6e2a85a4ef376c978c0b2a62c6af24fa7215905beebd24f1
MD5 71b676cc868a60dc2e194a6dd00eb5ac
BLAKE2b-256 6e79471b7fad53c0d4ecb3796e67f5902d274d6410a9d39a418c8d3efb530e66

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