I'm trying to debug a Jinja template but notice that when using pdb (or the Komodo IDE debugger), the reported line number in the stack traceback is not in sync with the actual template line number. This causes the debugger to report the incorrect line of template code in the stack trace (i.e., via the "where" or "bt" command in pdb).
When an exception is raised, Jinja correctly reports the line numbers in the exception traceback (see https://github.com/mitsuhiko/jinja2/blob/master/jinja2/debug.py#LC147 and https://github.com/mitsuhiko/jinja2/blob/master/jinja2/environment.py#L957 for the translation), but this translation isn't performed in an interactive debugging session. Is there a way to get accurate Jinja template line reporting in the stack traceback while using the debugger? Thanks, -- terry -- You received this message because you are subscribed to the Google Groups "pocoo-libs" 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/pocoo-libs?hl=en.
