Very useful to debug in ipython

from IPython.Debugger import Tracer; debug_here = Tracer()
# after import use the following anywhere
debug_here()