<br><br><div class="gmail_quote">On Fri, Jan 16, 2009 at 9:56 AM, Che M <span dir="ltr">&lt;<a href="mailto:pine508@hotmail.com">pine508@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br><br>
&gt;&gt; I&#39;d like to add to this question and expand it: &nbsp;can anyone point me to<br>
&gt;&gt; a good resource on debugging *generally*?<br>
&gt; The first result on &quot;Debugger tutorial&quot; on google sent me to this:<br>
<br>
&gt; <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>
&gt; Though it&#39;s for a specific program, it seems to have some good general purpose advice.<br>
&gt; Personally, I&#39;ve never had the need for a debugger (maybe because I&#39;m not writing complicated<br>
&gt; enough programs) - a simple &quot;print&quot; statement (in the right spot) tends to take care of all of my<br>
&gt; debugging needs.<br>
<br>
That page didn&#39;t strike me as very helpful for my case, but thanks<br>
anyway. &nbsp;I&#39;ll Google for it, too, but just wondered if any of the<br>
tutors here had any recommendations. &nbsp;I just checked Alan Gauld&#39;s<br>
tutorial and I see it doesn&#39;t have a debugger section (completely<br>
understandably, as this is sort of advanced).<br>
<br>
I also use print statements a fair bit. &nbsp;I&#39;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 &#39;python pdb tutorial&#39; 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,&nbsp;</div><div><br></div><div><br></div><div><br></div><div><br></div>