/**
 * @deprecated Since 5.0
 * @return null
 */
function eZDisplayDebug()
{
    $ini = eZINI::instance();
    if ($ini->variable('DebugSettings', 'DebugOutput') != 'enabled') {
        return null;
    }
    $scriptStopTime = microtime(true);
    $type = $ini->variable("DebugSettings", "Debug");
    //eZDebug::setHandleType( eZDebug::HANDLE_NONE );
    if ($type == "inline" or $type == "popup") {
        $asHtml = true;
        if ($ini->variable("DebugSettings", "DebugToolbar") == 'enabled' && $ini->variable("SiteAccessSettings", "CheckValidity") !== 'true' && $asHtml == true && !$GLOBALS['eZRedirection']) {
            $tpl = eZTemplate::factory();
            $result = "<tr><td colspan='2'>" . $tpl->fetch('design:setup/debug_toolbar.tpl') . "</td></tr>";
            eZDebug::appendTopReport("Debug toolbar", $result);
        }
        eZDebug::appendBottomReport('Template Usage Statistics', eZTemplatesStatisticsReporter::generateStatistics($asHtml));
        eZDebug::setScriptStop($scriptStopTime);
        return eZDebug::printReport($type == "popup", $asHtml, true, false, true, true, $ini->variable("DebugSettings", "DisplayIncludedFiles") == 'enabled');
    }
    return null;
}