==>Installation
Pip Install ipdb
==> Use
---> python-m ipdb xxx.py
Inside the program:
From ipdb import Set_traceset_trace ()
Enter (repeat last command) C (continue) L (find where it is currently) s (go to subroutine) R (run until subroutine ends)! <python command >h (Help) A (RGS) prints the parameters of the current function J (UMP) let the program jump to the specified number of lines L (IST) can list the code block that is currently going to run (EXT) Let the program run the next line, if the current statement has a A function call, with N is one of the most useful commands that does not enter P (rint) in the called function body, prints a variable q (uit) exit Debug R (Eturn) to continue execution until the function body returns s (TEP) similar to n, but if there is currently a function call, then s will enter the body of the function being called
Debugging a Python program with IPDB