Bug #76302
closedFix output and inconsistencies in DebugUtility
100%
Description
The DebugUtility always was and still is a crude mixture of methods, which creates debug output for different targets.
This never worked properly, but got even worse with the refactoring of the backend debugging console #65956
Since then the output of objects and array in a different context is so ugly and unusable, that it can considered broken (the result of json_encode of an object is not really helpful for a human).
Besides that, the context check is broken since a while, so that still HTML is shown in CLI context.
Last but not least, when outputting HTML, proper encoding is missing in most of the places.
Updated by Helmut Hummel over 8 years ago
The following scenarios should be tested¶
Variable to debug $a
:
$a = new \stdClass(); $b = new \stdClass(); $c = new \stdClass(); $b->c = $c; $a->b = $b;
Code to test:
\TYPO3\CMS\Core\Utility\DebugUtility::debug($a, 'Header', 'Group') \TYPO3\CMS\Core\Utility\DebugUtility::debugRows($a, 'Header') \TYPO3\CMS\Core\Utility\DebugUtility::debugInPopUpWindow($a, 'Header', 'Group') \TYPO3\CMS\Core\Utility\DebugUtility::printArray($a)
Scenarios:¶
- Frontend plugin (or similar)
- Backend module in frame
- Backend module in standalone window (not nested in backend)
- cli script
Updated by Gerrit Code Review over 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48288
Updated by Gerrit Code Review over 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48288
Updated by Gerrit Code Review over 8 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48288
Updated by Gerrit Code Review over 8 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48288
Updated by Gerrit Code Review over 8 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48288
Updated by Gerrit Code Review over 8 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48288
Updated by Gerrit Code Review over 8 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48288
Updated by Gerrit Code Review over 8 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48288
Updated by Gerrit Code Review over 8 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48288
Updated by Gerrit Code Review over 8 years ago
Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48288
Updated by Gerrit Code Review over 8 years ago
Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48288
Updated by Anonymous over 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ca77388cd784a56aef62e898fe2f53912d2a3b7b.
Updated by Gerrit Code Review over 8 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48384
Updated by Gerrit Code Review over 8 years ago
Patch set 2 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48384
Updated by Gerrit Code Review over 8 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48398
Updated by Gerrit Code Review over 8 years ago
Patch set 2 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48398
Updated by Anonymous over 8 years ago
- Status changed from Under Review to Resolved
Applied in changeset ebe80d6c0ee764764eb6affe98dbbcda0cf0c514.