import ipdb; set_trace() code example Example: ipdb python #debugging with ipdb python -m ipdb mymodule.py