Python - Dropping Into pdb From Nose

Updated 2026-09-23: nose doesn’t run on Python 3.10+, so use pytest --pdb instead.

This document describes how to drop into pdb when your Python nose tests fail: http://nose.readthedocs.org/en/latest/plugins/debug.html

It just requires running nosetests --pdb.

Very helpful if you’re debugging why a test failed.