Don't how successful it might be, but because TG can be made to work
on top of a WSGI hosting mechanism, you may be able to use one of the
interactive browser debuggers available as a WSGI middleware
component. The most well known is EvalException from the Paste
package. Not specific to TG, but some details on using this if hosting
using mod_wsgi can be found in section 'Browser Based Debugger' of:

  http://code.google.com/p/modwsgi/wiki/DebuggingTechniques

Only restriction is that TG must run within a single process. If
running TG in mod_wsgi daemon mode with a single process that is not a
problem.

Graham

On Feb 22, 2:02 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi lorax.  I haven't tried using PyDev or any other IDE.  I see
> references on the web for PyDev and Wing so here are some notes.
> First - TurboGears is (apparently) supported by 
> Wing:http://www.wingware.com/doc/howtos/turbogears
>
> The article uses Wing 3 which is fairly recent (released mid-last-year
> I think?) so I'll guess that it was working on a recent enough version
> of TurboGears 1.0.
>
> I use the Wing IDE for all of my dev work but tend to use a Test
> Driven Development approach - writing tests, running the tests using
> 'nosetests' from the command line, then integrating the working code
> into a template when I'm happy that it does the right job.
>
> This generally avoids the need for debugging in-process.  When I need
> in-process debugging I just fall back to 'print' to see what's going
> on, then typically develop more unit-tests to catch the bad condition
> and fix it.
>
> Fabio, author of PyDev, wrote an article on TG debugging with PyDev
> back in 
> 2006:http://pydev.blogspot.com/2006/07/configuring-pydev-to-work-with.html
> and the PyDev/TG article looks similar to the Wing article - notably
> turn off auto-reloading.  There's also a tip for a TG problem in mid
> 2007:http://pydev.blogspot.com/2007/06/why-cant-pydev-debugger-work-with.html
>
> There's another old short article mentioning configuring PyDev for 
> TG:http://inet6.blogspot.com/2006/07/easyeclipse-for-python-and-turbogea...
>
> I see a thread 
> here:http://www.mail-archive.com/[email protected]/msg18527.html
> mentioning that CP starts with 10 threads by default and it suggests
> that you might want just 1, see 
> e.g.:http://trac.turbogears.org/browser/website/dynamic/prod.cfg
> "server.thread_pool = 1"
>
> There are a few pages for Django+IDE development too which might give
> you some other 
> ideas:http://www.wingware.com/doc/howtos/djangohttp://pydev.blogspot.com/2006/09/configuring-pydev-to-work-with-djan...
>
> If you get a working solution, could you post back here so that others
> can follow in your footsteps?  I for one would like to know how to use
> an IDE for debugging...
>
> Cheers,
> Ian.
>
> On 21 Feb, 13:58, lorax <[EMAIL PROTECTED]> wrote:
>
> > Is anyone using pydev debugger with Turbogears?  If so, how did you
> > get it to work?  IF I try to strat my project wirth pydev it fails
> > miserably, not being able to find any modules.
>
> > If not pydev, what graphical debugger is everyone using?
>
> > pdb module is ok, but not the most convienent to use.
>
> > Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to