About the Project
Minitrace is a focused debugging utility that compresses and simplifies Python tracebacks so that developers can immediately spot the root cause of runtime errors.
With built-in highlighting and optional GUI prompts, it is especially handy for developers working across environments, from terminal sessions to small GUI-based applications.
Features
- Shortened traceback output for faster debugging
- Colorized error lines using Colorama
- Optional file selection dialog via Tkinter
- Customizable traceback depth
- File-saving support for preserving crash info
- No external services or internet access needed
- Fully open-source and lightweight (pure Python)
Installation
Option 1: Clone the GitHub repository
git clone https://github.com/wiktorlaskowski/Minitrace-Python-Library.git
Option 2: Download the Python file directly
Download minitrace.py from the repository and place it in your project folder.
Usage Example
Import and initialize the library:
from minitrace import MiniTrace
MiniTrace.init()
# Your code here...
Customization
Adjust the length of visible traceback:
MiniTrace.settracelengthto(10)
Project Philosophy
Minitrace helps reduce noise. Instead of adding complexity, it strips Python's traceback output down to what’s essential. Built for speed and clarity, Minitrace stays out of the way until it’s needed.
Support and Contributions
Have a suggestion, bug report, or idea? Open an issue or submit a pull request on GitHub.