<br><div class="gmail_quote">On Mon, Jul 16, 2012 at 9:54 PM, Andrew Bennetts <span dir="ltr">&lt;<a href="mailto:andrew@bemusement.org" target="_blank">andrew@bemusement.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dan Stromberg wrote:<br>
[…]<br>
<div class="im">&gt; Can anyone think of other ways of getting to the bottom of this?  Perhaps<br>
&gt; some field in a deferred or deferredList I can introspect to get better<br>
&gt; specifics?<br>
&gt;<br>
&gt; Is monkey patching an identifier of some sort into each deferred<br>
&gt; reasonable?  The intent would be to make it easier to match up the<br>
&gt; lingering DeferredLists with the place they&#39;re created.<br>
<br>
</div>That&#39;s the sort of thing that calling twisted.internet.defer.setDebugging(True)<br>
is meant to help with.  If you turn that on, you can probably introspect the<br>
stuff it creates and use that in your debugging tool.  (That&#39;s a bit ugly, but<br>
probably not significantly worse than introspecting other private attributes<br>
Deferred.)</blockquote><div><br>I&#39;m playing with twisted.internet.defer.setDebugging now.<br><br>Is there a corresponding function that can be used to produce its report?  If I use it in a program with an infinite loop, it seems like I never get the report, but if I use it in a program with a finite length, I eventually get a useful-looking report.<br>
<br></div></div>