Debugging
help(str)dir("Hello")Interactive Console
v = 1
breakpoint()
v = 2
#> (Pdb) v
#> 1
#> (Pdb)for i in [1, 2, 3, 4, 5]:
print(i)
if i == 4:
breakpoint()
#> 1
#> 2
#> 3
#> 4
#> > /Users/mjr/Desktop/my_script.py(3)<module>()
#> -> for i in [1, 2, 3, 4, 5]:
#> (Pdb) i
#> 4
#> (Pdb)Last updated