Debug toolbar

With $padToolbar = 'local' every web page of a local request carries a collapsible bar at its foot: what the engine collected while it rendered the page. This page switches it on for itself, so opened on your own machine the bar stands below.

PHP
fragments/toolbar_1.php
HTML
fragments/toolbar_1.pad
Result
<?php

$padToolbar
= 'local';

$colors = [ [ 'color' => 'red' ], [ 'color' => 'green' ] ];

?>
{colors}<span>{$color}</span> {/colors}
red green

The fragment shows the setting in a page's PHP; an application sets it once in _config/config.php.

What it shows

Who sees it

Only a local request: the command line, or this machine asking itself with nothing forwarded - the same test the full error report uses, and $padDiagnostics = FALSE closes it the same way. A visitor never gets it, whatever the setting. It is left out of a bare fragment (&padInclude), of anything that is not an HTML page answering 200, and of the page cache: it is added on the way out, after the cache stored the page.