Install library: pip install ipdb Add line info .py before control step: import ipdb; ipdb.set_trace() More info: https://pypi.org/project/ipdb/