Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v11 here: TYPO3 ELTS.
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!
Source code
Go to the source code of this ViewHelper: DebugViewHelper.php (GitHub).
Arguments
The following arguments are available for <f:
:
typeOnly
-
- Type
- boolean
If TRUE, debugs only the type of variables
levels
-
- Type
- integer
- Default
5
Levels to render when rendering nested objects/arrays
html
-
- Type
- boolean
Render HTML. If FALSE, output is indented plaintext