Interactive Debugging
def f(a, b):
c = a + b
d = a * b
return c+d
def run():
print(f(2, 3))
import code
code.interact(local=locals())
print(f(19, 23))
run()
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
def f(a, b):
c = a + b
d = a * b
return c+d
def run():
print(f(2, 3))
import code
code.interact(local=locals())
print(f(19, 23))
run()