python debugger
#preinstalled package
import pdb; pdb.set_trace()
python debugger
#preinstalled package
import pdb; pdb.set_trace()
how to set breakpoint in python pdb
import pdb
<SOME_CODE>
pdb.set_trace()
### OR ###
from pdb import set_trace as bp
<SOME_CODE>
bp()
debugging in python
#following is a incorrect code correct this code and give the correct code
#in comments
number = int(input("Which number do you want to check?"))
if number % 2 = 0:
print("This is an even number.")
else:
print("This is an odd number.")
#if you found the error and made it correct this is called debugging
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