Printout tracebacks in debug mode for exception during template processing