[Stackless] how to debug stackless tasklet?
Wentao Lv
wentlv at gmail.com
Wed Sep 8 03:17:25 CEST 2010
Hi, K
Thanks for your instruction. I will try with this.
Best regards.
Lv Wentao.
2010/9/3 Kristján Valur Jónsson <kristjan at ccpgames.com>
> 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:
>
> Sys.settrace(Profiler)
>
>
>
> K
>
>
>
> *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.
>
> _______________________________________________
> Stackless mailing list
> Stackless at stackless.com
> http://www.stackless.com/mailman/listinfo/stackless
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stackless.com/pipermail/stackless/attachments/20100908/850fabd4/attachment.html>
More information about the Stackless
mailing list