def after_step(context, step): if step.status == "failed": # -- SOLUTION: But note that step.exc_info does not exist, yet. import ipdb ipdb.post_mortem(step.exc_traceback)