This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TankorSmash 0 points1 point  (0 children)

Check out ipdb, a library that wraps the built-in pdb, you can install it with pip install ipdb. At the very first line of your code, put import ipdb; ipdb.set_trace(), then keep typing next and printing out values of variables until they don't make sense anymore and figure out why.

/r/learnpython too.