So far I\'ve found it impossible to produce usable tracebacks when Mako templates aren\'t coded correctly.
Is there any way to debug templates besides iterating for ever
Looking at the Flask-Mako source, I found an undocumented configuration parameter called MAKO_TRANSLATE_EXCEPTIONS
.
Set this to False
in your Flask app config and you'll get nice exceptions bubbling up from the template. This accomplishes the same thing as @Mariano suggested, without needing to edit the source. Apparently, this parameter was added after Mariano's answer.