for instance:<br><br>def g(some_param):<br>&nbsp;&nbsp;&nbsp;&nbsp; if some_param % 2 == 0:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; raise Exception()<br><br>@stackless.tasklet<br>def f(some_param):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stackless.schedule()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g(some_param)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stackless.schedule
()<br><br>task1 = f(1)<br>task2 = f(2)<br>try:<br>&nbsp;&nbsp;&nbsp; stackless.run()<br>except Exception:<br>&nbsp;&nbsp;&nbsp; import pdb<br>&nbsp;&nbsp;&nbsp; pdb.pm()<br><br>within pdb, I would like to see the current position of task1, which did not throw an exception, but did not terminate either.
<br><br><br><div><span class="gmail_quote">On 8/15/07, <b class="gmail_sendername">Richard Tew</b> &lt;<a href="mailto:richard.m.tew@gmail.com">richard.m.tew@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 8/15/07, Rotem Yaari &lt;<a href="mailto:vmalloc@gmail.com">vmalloc@gmail.com</a>&gt; wrote:<br>&gt; is anyone familiar with a technique for debugging stackless applications?<br>&gt; By debugging I mostly mean examining the state of several tasklets in a
<br>&gt; single run and/or switching between tasklets.<br><br>Can you give detail of a situation you are encountering where you<br>would like to debug something, but are not sure how to?&nbsp;&nbsp;I cannot<br>ascertain what you are trying to do from what you have written above
<br>and need further information in order to get a better picture of how<br>to answer your question.<br><br>Cheers,<br>Richard.<br></blockquote></div><br><br clear="all"><br>-- <br>Rotem