pip install pudb import pudb def my_function(): result = 0 for i in range(10): result += i return result