for instance:<br><br>def g(some_param):<br> if some_param % 2 == 0:<br> raise Exception()<br><br>@stackless.tasklet<br>def f(some_param):<br> stackless.schedule()<br> g(some_param)<br> stackless.schedule
()<br><br>task1 = f(1)<br>task2 = f(2)<br>try:<br> stackless.run()<br>except Exception:<br> import pdb<br> 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> <<a href="mailto:richard.m.tew@gmail.com">richard.m.tew@gmail.com</a>> 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 <<a href="mailto:vmalloc@gmail.com">vmalloc@gmail.com</a>> wrote:<br>> is anyone familiar with a technique for debugging stackless applications?<br>> By debugging I mostly mean examining the state of several tasklets in a
<br>> 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? 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