本文整理汇总了PHP中MWDebug::getDebugInfo方法的典型用法代码示例。如果您正苦于以下问题:PHP MWDebug::getDebugInfo方法的具体用法?PHP MWDebug::getDebugInfo怎么用?PHP MWDebug::getDebugInfo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MWDebug
的用法示例。
在下文中一共展示了MWDebug::getDebugInfo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: function
<?php
// add this somewhere in LocalSettings.php
if ($_SERVER["REMOTE_USER"] == 'NDC\\ejmontal') {
// get debug info via javascript with:
// JSON.parse( $("#egWiretapDebugInfo").text() );
$wgDebugToolbar = true;
$wgHooks['BeforePageDisplay'][] = function (&$out) {
$out->addElement("script", array("type" => "text/template", "id" => "egWiretapDebugInfo"), json_encode(MWDebug::getDebugInfo($out)));
};
}
if (isset($GLOBALS['JamesStartProfiler']) && $GLOBALS['JamesStartProfiler']) {
// Only record profiling info for pages that took longer than this
$wgProfileLimit = 0.0;
// Don't put non-profiling info into log file
$wgProfileOnly = false;
// Log sums from profiling into "profiling" table in db
$wgProfileToDatabase = false;
// If true, print a raw call tree instead of per-function report
$wgProfileCallTree = false;
// Should application server host be put into profiling table
$wgProfilePerHost = false;
// Settings for UDP profiler
$wgUDPProfilerHost = '127.0.0.1';
$wgUDPProfilerPort = '3811';
// Detects non-matching wfProfileIn/wfProfileOut calls
$wgDebugProfiling = false;
// Output debug message on every wfProfileIn/wfProfileOut
$wgDebugFunctionEntry = 0;
// Lots of debugging output from SquidUpdate.php
$wgDebugSquid = false;