<br><div class="gmail_quote">On Mon, Jul 16, 2012 at 9:54 PM, Andrew Bennetts <span dir="ltr"><<a href="mailto:andrew@bemusement.org" target="_blank">andrew@bemusement.org</a>></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">> Can anyone think of other ways of getting to the bottom of this? Perhaps<br>
> some field in a deferred or deferredList I can introspect to get better<br>
> specifics?<br>
><br>
> Is monkey patching an identifier of some sort into each deferred<br>
> reasonable? The intent would be to make it easier to match up the<br>
> lingering DeferredLists with the place they're created.<br>
<br>
</div>That'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's a bit ugly, but<br>
probably not significantly worse than introspecting other private attributes<br>
Deferred.)</blockquote><div><br>I'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>