debug ViewHelper <f:debug>
¶
This ViewHelper is only meant to be used during development.
Examples¶
Inline notation and custom title¶
{object -> f:debug(title: 'Custom title')}
Copied!
Output:
all properties of {object} nicely highlighted (with custom title)
Copied!
Only output the type¶
{object -> f:debug(typeOnly: true)}
Copied!
Output:
the type or class name of {object}
Copied!
Arguments¶
typeOnly¶
- DataType
- boolean
- Required
- false
- Description
- If TRUE, debugs only the type of variables
levels¶
- DataType
- integer
- Default
- 5
- Required
- false
- Description
- Levels to render when rendering nested objects/arrays
html¶
- DataType
- boolean
- Required
- false
- Description
- Render HTML. If FALSE, output is indented plaintext