[TYPO3-core] RFC #16200: New feature: add a control function for debugging
Markus Klein
m.klein at mfc-linz.at
Tue Nov 2 10:57:07 CET 2010
>
> This is an SVN patch request.
>
> Type: New feature
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=16200
>
> Test:
> Add the method debugControl to a debug extension and make an error_log
> to see that the parameter is passed correctly.
> function debugControl(array $parameters) {
> ob_start();
> print_r($parameters);
> $debugOut = ob_get_contents();
> ob_end_clean();
> error_log ('debugControl $parameters: '.$debugOut); }
Is there any reason you're doing this in such a complicated way?
IMHO this will do the same:
error_log ('debugControl $parameters: ' . print_r($parameters,
TRUE));
>
> Insert the call in any PHP code which is executed:
> debugControl(array('color' => 'yellow'));
>
>
>
> - Franz
Regards
Markus
More information about the TYPO3-team-core
mailing list