{debug} shows a value as a collapsible tree in the page, where the template uses it, and the rendering goes on - unlike {dump}, which stops the request.
|
PHP fragments/debug_1.php |
HTML fragments/debug_1.pad |
Result |
|---|---|---|
|
|
The order as the template sees it: |
{debug $name} - one value; an array is a tree to unfold, a missing name says so.{debug} - every field visible where it stands: the rows of the enclosing levels, innermost first, and the application's variables.$padDiagnostics = FALSE switches it off for every web request - the command line still gets it.