4 ms·
I don’t know how this works with the compilation angle, but this is often a life saver: try: # problem except: import code code.interact(local=
by halfcat 2y ago
I don’t know how this works with the compilation angle, but this is often a life saver:
try:
# problem
except:
import code
code.interact(local=locals())
You can add globals() in addition to locals() if desired.
This drops you into the interactive shell and you can go wild. Even works inside interactive code like grabbing a live HTTP request or GUI event to see what’s going on.