Shorten those verbose Python tracebacks to something more compact, comes with saving!
Ever seen those long tracebacks? Well, this is for you!
- Colorama colorcodes the line with the error.
- Tkinter for the file dialogue, probably installed but best to check.
Go to the website at https://wiktorlaskowski.github.io/Minitrace-Python-Library/
- First import the library. DO NOT USE
import minitrace
USEfrom minitrace import MiniTrace
- Initialize the library using the init function
MiniTrace.init()
from minitrace import MiniTrace
MiniTrace.init()
Use MiniTrace.settracelengthto()
to set the length
MiniTrace.settracelengthto(10)
Use MiniTrace.set_show_full_path(True)
to include file paths in the output.
Enable automatic saving of tracebacks:
MiniTrace.enable_auto_save("trace.log")
Disable with MiniTrace.disable_auto_save()
when you are done.
Pip does not support minitrace, you will need to download the file from raw code to activate it.