debug function for extension development
7. July 2017
\TYPO3\CMS\Core\Utility\DebugUtility::debug($varToDebug);
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($varToDebug);
use TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbQueryParser;
$queryParser = $this->objectManager->get(Typo3DbQueryParser::class);
DebuggerUtility::var_dump(
$queryParser->convertQueryToDoctrineQueryBuilder($query)->getSQL()
);