{"repo":"andy-landy/traceback_with_variables","free":true,"listed":false,"github":"https://github.com/andy-landy/traceback_with_variables","clone":"git clone https://github.com/andy-landy/traceback_with_variables.git","description":"Adds variables to python traceback. Simple, lightweight, controllable. Customize formats and colors. Debug reasons of exceptions by logging or pretty printing colorful variable contexts for each frame in a stacktrace, showing every value. Dump locals environments after errors to console, files, and loggers. Works in Jupyter too.","language":"Python","stars":702,"topics":["python","traceback","locals","logging","debugging","print","variables","python3","stacktrace","arguments"],"license":"MIT","category":"dev-tools","readme_excerpt":"Python Traceback (Error Message) Printing Variables Very simple to use and fast, but versatile when needed. Try for debug and keep for small-scale production. “It is useless work that darkens the heart.” – Ursula K. Le Guin Tired of useless job of putting all your variables into debug exception messages? Just stop it. Automate it and clean your code. Once and for all. --- Contents: Installation 🚀 Quick Start Colors How does it save my time? Examples and recipes Reference FAQ --- :warning: I'm open to update this module to meet new use cases and to make using it easier and fun : so any proposal or advice or warning is very welcome and will be taken into account of course. When I started it I wanted to make a tool meeting all standard use cases. I think in this particular domain this is rather achievable, so I'll try. Note next version branch also. Have fun! --- Installation to use shorter tb alias in interactive mode call this once: 🚀 Quick Start Using without code editing, running your script/command/module : Simplest usage , for the whole program: or just (if you added an alias by the above command) Decorator , for a single function: Context , for a single code block: Work with traceback lines in a custom manner: No exception but you want to print the stack anyway? : Using a logger [ with a decorator , with a context ]: Print traceback in interactive mode after an exception: Customize any of the previous examples: Colors How does it save my time? Turn a code totally covere","default_branch":null,"files":null,"tree":[],"storefront":"/r/andy-landy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/andy-landy/traceback_with_variables/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}