Attention

TYPO3 v9 has reached its end-of-life September 30th, 2021 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.

You can order Extended Long Term Support (ELTS) here: TYPO3 ELTS.

debug

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:'Tx_BlogExample_Domain_Model_Administrator'}"
    blacklistedPropertyNames="{0:'posts'}"
    plainText="true" ansiColors="false"
    inline="true"
    >
        {blogs}
    </f:debug>

[A HTML view of the var_dump]

Arguments

title

DataType

string

Required

false

Description

Optional custom title for the debug output

maxDepth

DataType

mixed

Default

8

Required

false

Description

Sets the max recursion depth of the dump (defaults to 8). De- or increase the number according to your needs and memory limit.

plainText

DataType

mixed

Required

false

Description

If TRUE, the dump is in plain text, if FALSE the debug output is in HTML format.

ansiColors

DataType

mixed

Required

false

Description

If TRUE, ANSI color codes is added to the plaintext output, if FALSE (default) the plaintext debug output not colored.

inline

DataType

mixed

Required

false

Description

If TRUE, the dump is rendered at the position of the <f:debug> tag. If FALSE (default), the dump is displayed at the top of the page.

blacklistedClassNames

DataType

mixed

Required

false

Description

An array of class names (RegEx) to be filtered. Default is an array of some common class names.

blacklistedPropertyNames

DataType

mixed

Required

false

Description

An array of property names and/or array keys (RegEx) to be filtered. Default is an array of some common property names.