Tutorial Python Debugging with pdb
You temporarily insert this debugging statement, which stops Python execution at that point and turns on “python debugger” (pdb) …
Now when you execute the program you can interact with the debugger with these commands …