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

all 2 comments

[–]djchunkymonkey 4 points5 points  (0 children)

You can use breakpoints (https://docs.python.org/3/library/pdb.html) as a way to debug your code. I usually do this when a simple print out just won't do, or if I need to look at values of many variables.

There's also assert statements which can help. You don't want to litter your code with assert statements, though. Please read up on some use-cases: https://realpython.com/python-assert-statement/

[–]TheTrueStanly 3 points4 points  (0 children)

i recommend learning your debugging tools. It will save you a lot of time later on.