Routing and Template Cookbook: Errors and debugging

From Dreamwidth Notes
Revision as of 17:51, 24 February 2013 by Foxfirefey (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This section is about how to serve errors and strategies for debugging.

Handlers

Templates

Dumping variable contents for debugging

If you're trying to debug problems with your template, you might find the Dumper TT plugin useful to peek inside the contents of your variables.

[% USE Dumper %]
[% Dumper.dump(variable) %]

Dumping a variable will output its contents--so, a hash for instance, will have all its keys and values printed.