nosetests --pdb let\'s me halt upon error or failure, but this is too late for my needs. Stepping through code during execution helps me debug where the problem is.
nosetests --pdb
If you are using pytest, you can use
import pytest; pytest.set_trace()
See documentation.