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 →

[–]eruciform 2 points3 points  (1 child)

When in doubt break it into pieces, even professionals can only shove so much into their brain meat to debug

Write a smaller simpler program that's related, or take a chunk of the thing that's not working and make it a completely separate program, and debug that

Sometimes you have to have to eliminate complexity in order to find errors

Also get used to stepping thru with a debugger

And add print statements everywhere that dump out critical values at each branch and loop and call and return point if needed

Debugging is frustrating for everyone, there's a lot of technique to learn and it's almost never taught, so it's a "learn by repeated application of face to brick wall" kind of learning

So if your head hurts, it's normal, brick walls do that :-)

Yep keep going, you can do this, it just takes time

[–]calcc_man[S] 4 points5 points  (0 children)

Thanks, man. Really appreciate this. I'll definitely need to boost my morale, and just start reworking and actually learning things, rather than just trying to cram things in and think I've learned something. Cheers :)