Let me back pedal a little bit. I just started testing some of my 
projects with pydev + python2.5, and it looks like it has problems with 
empty @expose() decorators in pydev, but runs just fine outside of it.

David Gardner wrote:
> The workaround suggested by Fabio works just fine.
> Regarding the threads and auto-reloading, I just set these in dev.cfg,
> so that the deployment can run with auto-reloading and a bunch of cp
> threads.
>
> [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-turbogears.html
>>
>> 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/django
>> http://pydev.blogspot.com/2006/09/configuring-pydev-to-work-with-django.html
>>
>> 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