Python Tips and Tricks - sgould/fun_and_games GitHub Wiki
Interactive Debugging
Use the built-in function breakpoint()
to drop into an interactive debugger. Or even better,
import code
code.interact()
to get an interactive shell. Use Ctrl-D
to resume, exit()
to terminate, locals().keys()
to list variables in current context.