Debug ViewHelper <f:debug>
Note
This reference is part of the documentation of Fluid Standalone. If you are working with Fluid in TYPO3 CMS, please refer to TYPO3's ViewHelper reference instead.
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!
Go to the source code of this ViewHelper: DebugViewHelper.php (GitHub).
Arguments
The following arguments are available for the debug ViewHelper:
html
-
- Type
- boolean
- Default
- false
Render HTML. If false, output is indented plaintext
levels
-
- Type
- integer
- Default
- 5
Levels to render when rendering nested objects/arrays
typeOnly
-
- Type
- boolean
- Default
- false
If true, debugs only the type of variables