debug Function

	private function debug($mixedValue){
                  DebuggerUtility::var_dump($mixedValue);
	        \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($mixedValue);
	}
	private function debugLog($mixedValue){
	        unlink("logger.log");
			error_log(print_r($mixedArray,true), 3, "logger.log");
	}

    /**
     * @param \TYPO3\CMS\Extbase\Persistence\Generic\QueryResult $queryResult
     * @param boolean $explainOutput
     * @return void
     */
    public function debugQuery(\TYPO3\CMS\Extbase\Persistence\Generic\QueryResult $queryResult, $explainOutput = FALSE){
        $GLOBALS['TYPO3_DB']->debugOutput = 2;
        if($explainOutput){
            $GLOBALS['TYPO3_DB']->explainOutput = true;
        }
        $GLOBALS['TYPO3_DB']->store_lastBuiltQuery = true;
        $queryResult->toArray();
        \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($GLOBALS['TYPO3_DB']->debug_lastBuiltQuery);
        $GLOBALS['TYPO3_DB']->store_lastBuiltQuery = false;
        $GLOBALS['TYPO3_DB']->explainOutput = false;
        $GLOBALS['TYPO3_DB']->debugOutput = false;
    }

Enable debug info
config.contentObjectExceptionHandler = 0