Skip to content

ANU-2524/pybugmate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages