python -m pudb <python_file>
- opens up the script in pudb window, not executed anything yet. For fire modules better to make separate script that executes the individual function of interest, difficult to debug the original main file. Need pudb in virtualenv.
Or:
from pudb import set_trace
...
set_trace()