[Stackless] Debugging stackless applications
Rotem Yaari
vmalloc at gmail.com
Wed Aug 15 13:09:58 CEST 2007
for instance:
def g(some_param):
if some_param % 2 == 0:
raise Exception()
@stackless.tasklet
def f(some_param):
stackless.schedule()
g(some_param)
stackless.schedule()
task1 = f(1)
task2 = f(2)
try:
stackless.run()
except Exception:
import pdb
pdb.pm()
within pdb, I would like to see the current position of task1, which did not
throw an exception, but did not terminate either.
On 8/15/07, Richard Tew <richard.m.tew at gmail.com> wrote:
>
> On 8/15/07, Rotem Yaari <vmalloc at gmail.com> wrote:
> > is anyone familiar with a technique for debugging stackless
> applications?
> > By debugging I mostly mean examining the state of several tasklets in a
> > single run and/or switching between tasklets.
>
> Can you give detail of a situation you are encountering where you
> would like to debug something, but are not sure how to? I cannot
> ascertain what you are trying to do from what you have written above
> and need further information in order to get a better picture of how
> to answer your question.
>
> Cheers,
> Richard.
>
--
Rotem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.stackless.com/pipermail/stackless/attachments/20070815/406d5681/attachment.htm
-------------- next part --------------
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://stackless.com/cgi-bin/mailman/listinfo/stackless
More information about the Stackless
mailing list