Ditto debugging features

Adding the parameter &debug=`1` to your Ditto call generates an informative report telling how the snippet is seeing your parameters and what is being retrieved and selected for display on the basis of them. This information can give you valuable clues about what needs correction when things go wrong. It can also give you a better idea of how Ditto operates when things go right!

When the parameter is set to `1`, two lines are added at the top of the output page. Open debug console opens in a new window of its own. The other link offers to save the same information in an HTML file.

Clicking on Open debug console displays a summary in five or six tabs:


[!Ditto? &parents=`506` &display=`3` &tplFirst=`@FILE:[(base_path)]assets/snippets/ditto/external.html` &dateSource=`pkDate` &orderBy=`pkDate ASC` &debug=`1` !]
Open Debug Console
Save Debug Console

Quisque consectetur, ITEM 511 quam sit amet fringilla

01-May-07 00:00

Aenean vitae ITEM 510 justo vitae turpis pellentesque

by Anon on 04-Jun-08 00:00
Donec eget urna vitae lacus suscipit imperdiet. Ut eu magna viverra enim placerat ultricies

Duis tristique ITEM 512 urna id metus. Maecenas

by Anon on 04-Jun-08 00:00
Maecenas volutpat. In vitae arcu at quam congue dictum


Note: if you just see your output in a new window instead of the debug console when you click on Open debug console, try adjusting the cache arrangements. Either set the Ditto call to be uncached with [!Ditto?...!], or leave it uncached and clear the Cacheable checkbox in Page Settings.