On 11/10/06, Chris Miles <[EMAIL PROTECTED]> wrote:
I've had good experiences using pdb to debug TurboGears apps.

Where ever you want a breakpoint (eg: in a controller method) just add the line:
  import pdb; pdb.set_trace()

and restart your app.  When the breakbpoint is hit the app will drop to a pdb prompt where you can explore away.

Thanks, Chris. This is a good way to debug my application under TG.



Thanks again, I'm  a python newbie so I didn't  know about pdb :)
 

Cheers
CM

I 've found another way to debug TG. I installed pydev eclipse plugin and put
autoreload.on=False
in dev.cfg file.
There is a tutorial about this at:
http://pydev.blogspot.com/2006/07/configuring-pydev-to-work-with.html

Cheers
mario h.c.t.
 
  

On 10 Nov 2006, at 01:11, mario henrique wrote:


On 11/9/06, Jorge Vargas < [EMAIL PROTECTED]> wrote:

On 11/9/06, mario henrique < [EMAIL PROTECTED]> wrote:
> Hello, guys.
>
> There is any way to debug all turbogears framework? What debugger should I
> use?
you shouldn't need too, "errors" in the templates are catch at runtime.

But  I'm  trying  to  see the internals  of  turbogears, and this is simpler to accomplish using a debugger tool. I don't have any problems with templates tough :)







--~--~---------~--~----~------------~-------~--~----~
 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