The Python package PySnooper is pretty good for "fancy" print debug statements: https://github.com/cool-RR/pysnooper
I've caught quite a few bugs using this show-me-all-locals() approach...
I've caught quite a few bugs using this show-me-all-locals() approach...
What I liked about pysnooper is the ability to snoop on a specific function and/or code block to focus on the work-in-progress section of code.