DebugViewHelper

final class \TYPO3\CMS\Fluid\ViewHelpers\DebugViewHelper

Extends
AbstractViewHelper
Uses
CompileWithRenderStatic

This ViewHelper generates a HTML dump of the tagged variable.

Examples

Simple

::

<f:debug>{testVariables.array}</f:debug>

foobarbazfoo

All Features

::

<f:debug title="My Title" maxDepth="5" blacklistedClassNames="{0:'ACME\BlogExample\Domain\Model\Administrator'}" blacklistedPropertyNames="{0:'posts'}" plainText="true" ansiColors="false" inline="true" > {blogs} </f:debug>

[A HTML view of the var_dump]

Table of Contents

Properties

$escapeChildren  : bool
This prevents double escaping as the output is encoded in DebuggerUtility::var_dump
$escapeOutput  : bool
Output of this viewhelper is already escaped

Methods

initializeArguments()  : void
renderStatic()  : string
A wrapper for \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump().

Properties

$escapeChildren

This prevents double escaping as the output is encoded in DebuggerUtility::var_dump

protected bool $escapeChildren = false

$escapeOutput

Output of this viewhelper is already escaped

protected bool $escapeOutput = false

Methods

initializeArguments()

public initializeArguments() : void

renderStatic()

A wrapper for \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump().

public static renderStatic(array $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string

Parameters

$arguments : array
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface

Return values

string
On this page