Normal pdb doesn't work when debugging with nose, so use pdb for nose.
# from nose.tools import pdb; pdb.set_trace() #This is wrong
from nose.tools import set_trace; set_trace() #Stop here
This will launch the debugger.
I wrote it wrong before. The correct answer was import set_trace instead of import pdb.
Recommended Posts