DebugViewHelper

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

Extends
AbstractViewHelper

ViewHelper to generate an HTML readable dump of variables or objects.

The output can be navigated like a nested tree. The output will be put at the beginning of the HTML response, unless the inline attribute is set, so that the output will be placed at the specific place where it is placed inside a Fluid template.

  <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>

Tags

see
https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-debug

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
render()  : 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

render()

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

public render() : string

Return values

string
On this page