[wingide-users] debugging CherryPy

Chris Curvey ccurvey at gmail.com
Sat Mar 25 08:24:04 EST 2006


On 3/24/06, Wingware Support <support at wingware.com> wrote:
>
> Chris Curvey wrote:
> > When I was working with CGI, I found it very helpful to be able to have
> Wing
> > stop my CGI scripts and let me debug them "in flight".  Anybody got a
> recipe
> > for doing this with CherryPy?  (I use it both "plain" and within
> > TurboGears.)
>
> It looks like you can import wingdbstub within CherryPy response
> functions like you can do with cgi scripts.  I just tried this with the
> simple helloworld script from their tutorial, adding the import
> wingdbstub as the first line in the index() method.
>
> When the server.threadPool setting is 0 (the default), all requests are
> apparently run on a single thread.  This works around Wing's inability
> to debug multiple threads.
>
> Let us know if you run into any problems,
>
> John
>

Hm, I must be missing something.  I import wingbstub,  ensure that passive
listen is on, set the breakpoint, and it blows right past.  I wonder if
TurboGears is setting CherryPy's thread count to something other than zero.

--
Nervous passengers are advised to wear a blindfold.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/wingide-users/attachments/20060325/58a8011f/attachment.htm


More information about the wingide-users mailing list