pythondebug() Functions can be entered into debuggers for debugging . Exactly , It calls sys.breakpointhook(), Direct delivery args and kws.
breakpoint() The syntax of the function is ：
In this example , We will be in our Python Call... Somewhere in the program breakpoint() function , Then see what happens .
a = 2 b = 3 if (a + b == 5): breakpoint() print('sum is 5')
The system is in print() Statement Python debugging Pattern , Then you can check the values of the variables .