A couple go to Python debugging aids of mine, first is breaking into the debugger.
import pdb; pdb.set_trace()
The second is:
```
def printtb(fun):
import functools
@functools.wraps(fun)
def wrapper(*a, **kwa):
try:
return fun(*a, *kwa)
except:
import traceback; traceback.print_exc()
raise
return wrapper
```
Then any functions that is throwing an exception that I can't easily wrap elsewhere (or have no clue where it's being called from), I just throw this wrapper around it and I get the traceback I need.