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