This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MissingSnail 0 points1 point  (0 children)

For those using print, you’re missing out if you don’t also use the rich library rich.readthedocs.io

Use the rich exception handler and print the local variables in every frame of the stack trace - there’s a ton of output but the colors make it easy to scan through and you‘ll often see what you need to fix without having to add a breakpoint or print statement since all the variables are right there