Hi Matt,<br><br>Thanks for the link - that is what I was looking for, but for some reason was unable to find...<br><br>Chris<br><br><div class="gmail_quote">On Mon, Dec 13, 2010 at 6:26 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Chris,<br>
<div><div></div><div class="h5"><br>
On Mon, Dec 13, 2010 at 3:24 PM, Chris Malone <<a href="mailto:chris.m.malone@gmail.com">chris.m.malone@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> It's not very well documented - or at least I wasn't having luck finding<br>
> mention in the docs - how to properly turn on debugging for yt.  After some<br>
> time digging through the source, I have found that this is handled through<br>
> the *logging* module - a standard module, which I am not (but should be)<br>
> familiar with.<br>
><br>
> Anyhow, I have gathered that I can turn on debugging by adding the following<br>
> two lines to my ~/.yt/config file:<br>
><br>
> [yt]<br>
> LogFile = True<br>
> LogLevel = 0<br>
><br>
> Is this the recommended usage?  Is there an easier way to turn debugging on<br>
> for, say, a single iyt or yt invocation via a command line argument?<br>
<br>
</div></div>It depends on what you want to do.  What you've put in there -- which<br>
I agree should be better documented -- will turn on debugging<br>
statements that have been sprinkled throughout the source by the<br>
developers.  This won't necessarily help out if you have a traceback<br>
or other error, in which case some of the techniques in "Debugging and<br>
Driving" might help:<br>
<br>
<a href="http://yt.enzotools.org/doc/advanced/debugdrive.html" target="_blank">http://yt.enzotools.org/doc/advanced/debugdrive.html</a><br>
<br>
You might also try just running with the "pdb" module:<br>
<br>
python2.6 -m pdb your_script.sh<br>
<br>
This will put you into a postmortem phase where you can inspect the<br>
code if an exception occurs.<br>
<br>
-Matt<br>
<br>
><br>
> Chris<br>
><br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div><br>