[wingide-users] debugging CherryPy
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
> > stop my CGI scripts and let me debug them "in flight". Anybody got a
> > 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,
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...
More information about the wingide-users