yt.funcs.
pdb_run
This decorator inserts a pdb session on top of the call-stack into a function.
This can be used like so:
@pdb_run def some_function_to_debug(...):