python debugger
#preinstalled package
import pdb; pdb.set_trace()
python debugger
#preinstalled package
import pdb; pdb.set_trace()
python __debug__
If you want to have a debugging feature in python, I know that Visual studio
code has a fantastic and easy to use debugger.
pdb debugger
import pdb
def fact(x):
f = 1
for i in range(1,x+1):
pdb.set_trace()
print (i)
f = f * i
return f
if __name__=="__main__":
print ("factorial of 3=",fact(3))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us