Using pdb with greenlet
Hi All, I am sort of a newbie to Python ( have just started to use pdb). My problem is that I am debugging an application that uses greenlets and when I encounter something in code that spawns the coroutines or wait for an event, I lose control over the application (I mean that after that point I can no longer do 'n' or 's' on the code). Can anyone of you tell me how to tame greenlet with pdb, so that I can see step-by-step as to what event does a coroutine sees and how does it respond to it. Any help would be highly appreciated. Thanks, Salman
On Tue, Jun 12, 2012 at 2:31 PM, Salman Malik
Hi All,
I am sort of a newbie to Python ( have just started to use pdb). My problem is that I am debugging an application that uses greenlets and when I encounter something in code that spawns the coroutines or wait for an event, I lose control over the application (I mean that after that point I can no longer do 'n' or 's' on the code). Can anyone of you tell me how to tame greenlet with pdb, so that I can see step-by-step as to what event does a coroutine sees and how does it respond to it.
Any help would be highly appreciated.
Your question is better suited for python-list rather than python-dev. This list is for the development *of* Python, not *with* Python.
I am sorry for mailing it to this list. Thanks for the correction. Salman
Date: Tue, 12 Jun 2012 14:34:04 -0500 Subject: Re: [Python-Dev] Using pdb with greenlet From: brian@python.org To: salmanmk@live.com CC: python-dev@python.org
On Tue, Jun 12, 2012 at 2:31 PM, Salman Malik
wrote: Hi All,
I am sort of a newbie to Python ( have just started to use pdb). My problem is that I am debugging an application that uses greenlets and when I encounter something in code that spawns the coroutines or wait for an event, I lose control over the application (I mean that after that point I can no longer do 'n' or 's' on the code). Can anyone of you tell me how to tame greenlet with pdb, so that I can see step-by-step as to what event does a coroutine sees and how does it respond to it.
Any help would be highly appreciated.
Your question is better suited for python-list rather than python-dev. This list is for the development *of* Python, not *with* Python.
participants (2)
-
Brian Curtin
-
Salman Malik