On Wed, Sep 23, 2009 at 5:49 PM, Timm Essigke <[email protected]> wrote: > [...] > > The method get_blog_post is in > /usr/lib/python2.5/site-packages/TracFullBlogPlugin-0.1-py2.5.egg/tracfullblog/model.py. > First, I was suspecting the SELECT statement to take about 20 sec, but > by adding some extra debug lines it turned out to be fast. Instead trac > blocks after leaving the method, but I don't know how to debug python > code inside apache (e.g. get a call graph or run pdb).
What I usually do (while dev-ing) is to prepare a PyDev (Eclipse) project and run tracd in debug mode (e.g. that's how I found the exact location where old 1.4.x SVN bindings raised an ugly segmentation fault while running Trac on a particular Windows PC ;o). If the problem is not specific to Apache then this might help (and I suppose that something similar happens with pdb et al ...) ;o) -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: Soporte para Hessian (RPC) en Trac - http://feedproxy.google.com/~r/simelo-es/~3/1vNiBD5LjP8/soporte-para-hessian-rpc-en-trac.html -- You received this message because you are subscribed to the Google Groups "Trac Users" 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/trac-users?hl=en.
