<br><br><div class="gmail_quote">On Fri, Jan 16, 2009 at 9:56 AM, Che M <span dir="ltr"><<a href="mailto:pine508@hotmail.com">pine508@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br><br>
>> I'd like to add to this question and expand it: can anyone point me to<br>
>> a good resource on debugging *generally*?<br>
> The first result on "Debugger tutorial" on google sent me to this:<br>
<br>
> <a href="http://www.cs.princeton.edu/~benjasik/gdb/gdbtut.html" target="_blank">http://www.cs.princeton.edu/~benjasik/gdb/gdbtut.html</a><br>
<br>
> Though it's for a specific program, it seems to have some good general purpose advice.<br>
> Personally, I've never had the need for a debugger (maybe because I'm not writing complicated<br>
> enough programs) - a simple "print" statement (in the right spot) tends to take care of all of my<br>
> debugging needs.<br>
<br>
That page didn't strike me as very helpful for my case, but thanks<br>
anyway. I'll Google for it, too, but just wondered if any of the<br>
tutors here had any recommendations. I just checked Alan Gauld's<br>
tutorial and I see it doesn't have a debugger section (completely<br>
understandably, as this is sort of advanced).<br>
<br>
I also use print statements a fair bit. I've just heard that using<br>
a debugger is a very useful thing and I thought maybe someone would<br>
have some tips here or knew of a good Python-relevant tutorial about it.<br>
<br>
Thanks,<br>
Che<br>
<br>
<br>
-Wayne<br>
<br></blockquote></div>I did a search for 'python pdb tutorial' and found this resource:<div><br></div><div><a href="http://www.ferg.org/papers/debugging_in_python.html">http://www.ferg.org/papers/debugging_in_python.html</a><br>
</div><div><br></div><div>pdb is the python debugger, this tutorial will give you more than enough to get started.</div><div><br></div><div>Cheers, </div><div><br></div><div><br></div><div><br></div><div><br></div>