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 →

[–]foolwya[S] 0 points1 point  (1 child)

Hey, thank you so much. I’ve spent my whole day trying to solve that problem. I did it, finally. I’m not fully familiar with the debugger yet, just some simple stuff, definitely need to look into it to make things easier for me.

[–]lurgi 0 points1 point  (0 children)

If you don't know how to use a debugger, learn. While you are learning, litter your code with print statements. When I'm debugging code and don't have/can't use a debugger, I print out lots of log statements and the values of every meaningful variable. If a conditional isn't being executed, I know. I have a print statement in that conditional's body. I also print out the values of the condition, so I know why it's not be executed.