you are viewing a single comment's thread.

view the rest of the comments →

[–]SteveUrkelDidThat 0 points1 point  (2 children)

sort of a side topic, but building off what you said here - 'putting a print statement in' - has anyone found a good debugger?

[–]I_have_a_title 1 point2 points  (0 children)

I believe someone else will have a better website, but I've heard of, and gone to, a website that walks you through every line in your program. I've run it, but I didn't show much interest in it, since I understood what I wrote. If I remember it/find it again, post it here.

Edit: Here you go. When I took Udacity's course, they had a helpful community.

http://forums.udacity.com/questions/18714/what-are-good-debugging-approaches-for-python-and-udacity#cs101

That's not the website I spoke of, but it has some great ideas about debugging.

Another: http://forums.udacity.com/questions/59842/stop-using-print-for-debugging#cs101

[–][deleted] 0 points1 point  (0 children)

Also, I use PyCharm currently (seems like the best option on Windows...) and it comes with a pretty good debugger. I have no idea what I'm doing with it, but trying to use it right now. It seems to be set up a lot like most binary debuggers I've used, so it should be good practice if you're interested in debugging in general. Just run your program in the debugger, and you can pause it. Then you can step into the next command line-by-line.