<div dir="ltr"><div class="gmail_extra">Hi,<br><br></div><div class="gmail_extra"><div class="gmail_quote">On Fri, Jun 20, 2014 at 10:54 AM, Dan Wandschneider <span dir="ltr">&lt;<a href="mailto:daniel.wandschneider@schrodinger.com" target="_blank">daniel.wandschneider@schrodinger.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Probably pdb.  You can use pdb.set_trace() to start the debugger - it sounds like you want to put this at the beginning of the function you&#39;re debugging.  Please check <a href="https://docs.python.org/2/library/pdb.html" target="_blank">the documentation for pdb</a>, which includes some examples.  The <a href="http://pythonconquerstheuniverse.wordpress.com/2009/09/10/debugging-in-python/" target="_blank">&quot;debugging in python&quot;</a> article at pythonconquerstheuniverse is also nice.<br>


<div class="gmail_extra"></div></div></blockquote></div><br></div><div class="gmail_extra">I recently discovered &#39;pudb&#39;, which is &#39;pdb&#39; with a nice curses interface. I now make sure I have this installed everywhere I&#39;m likely to want to debug things - it&#39;s awesome!. For more information:<br>
<br><a href="https://pypi.python.org/pypi/pudb">https://pypi.python.org/pypi/pudb</a><br></div><div class="gmail_extra"><br clear="all"></div><div class="gmail_extra">Cheers,<br><br></div><div class="gmail_extra">-- <br><div dir="ltr">
<div>Thomi Richards<br></div><a href="mailto:thomi.richards@canonical.com" target="_blank">thomi.richards@canonical.com</a><br></div>
</div></div>