[Stackless] how to debug stackless tasklet?

Kristján Valur Jónsson kristjan at ccpgames.com
Fri Sep 3 10:51:33 CEST 2010

In the current version of python, tracing and profiling state (used by the debugger) are local to each tasklet.
It depends on the debugger you are using...  but you should try to call sys.settrace() in your tasklet to set it to the correct tracing function.

In your main code, do:
Profiler = sys.gettrace(),
Then in your tasklet:


From: stackless-bounces at stackless.com [mailto:stackless-bounces at stackless.com] On Behalf Of Wentao Lv
Sent: Friday, September 03, 2010 14:52
To: stackless at stackless.com
Subject: [Stackless] how to debug stackless tasklet?

Hi, I'm trying to debug stackless tasklet, but it seems that my debugger can't hit the breakpoint with in a tasklet.

Is there anyway to run into tasklet? I tried with eclipse/pydev & pdb but with no luck

Thanks in advance.

Best Regards.
Lv Wentao.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stackless.com/pipermail/stackless/attachments/20100903/48256276/attachment.html>

More information about the Stackless mailing list