[TYPO3-english] print_r worries

Jigal van Hemert jigal.van.hemert at typo3.org
Mon Sep 1 22:43:26 CEST 2014


Hi,

On 1-9-2014 18:27, Bernhard Kraft wrote:
> Until 6.2 and extbase have come I used "print_r" for debugging. Since
> then I get a "memory exhausted" almost anytime I use "print_R" on some
> extbase object or any object/array containing an extbase powered object.

Extbase and fluid have something better:

\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump()

<f:debug>

This produces a formatted output of the data/object with lots of extra 
information and expandable items.

-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-english mailing list