[TYPO3-dev] blank pages when I try to debug objects...
Helmut Hummel
helmut.hummel at typo3.org
Wed May 4 16:51:54 CEST 2016
bugblatterbeast wrote:
> Hi all,
>
> I usually get php-error-messages and exceptions. Sometimes, when I try to debug some objects by using print_r() on them, I just get an empty page. I think this might be related to the size of the output. Unfortunately the apache log-files do not show anything suspicious at all.
You should always use
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump() instead of just
var_dump() or print_r() to avoid memory issues and recursion, especially
when dumping Extbase generated objects.
Kind regards,
Helmut
--
Helmut Hummel
Release Manager TYPO3 6.0
TYPO3 CMS Active Contributor, TYPO3 Security Team Member
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-dev
mailing list