扩展:DebugMode

From mediawiki.org
This page is a translated version of the page Extension:DebugMode and the translation is 17% complete.
MediaWiki扩展手册
DebugMode
发行状态: 不再維護
实现 用户界面
描述 将wiki切换至调试模式
作者 Ike Hecht (Tosfos留言)
最新版本 0.1.0 (2014-10-28)
MediaWiki 1.23
PHP 5.3
数据库更改
许可协议 GNU通用公眾授權條款2.0或更新版本
下載
  • $wgDebugMode
  • $wgDebugModeIgnoreVars
季度下載量 1 (Ranked 146th)
前往translatewiki.net翻譯DebugMode扩展

The DebugMode extension puts the wiki into debug mode, which means all MediaWiki debugging parameters are switched on.

安裝

  • 下载文件,并将其放置在您extensions/文件夹中的DebugMode目录内。
    开发者和代码贡献人员应从Git安装扩展,输入:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DebugMode
  • 将下列代码放置在您的LocalSettings.php 的底部:
    require_once "$IP/extensions/DebugMode/DebugMode.php";
    
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。

配置参数

$wgDebugMode
Level of debugging. Can be set to true to enable all debugging or false to do nothing.
Setting to false does not turn debugging off! It just leaves the existing settings alone.
Can be set using named constants in the DebugMode class, using bitwise operators:
Default value is a reasonable level of debugging, which is DebugMode::DEBUG_MODE_ALL minus DebugMode::DEBUG_MODE_VERBOSE.
Example: DebugMode::DEBUG_MODE_ALL ^ DebugMode::DEBUG_MODE_INI ^ DebugMode::DEBUG_MODE_PHP for “all but no PHP settings”.
$wgDebugModeIgnoreVars
An array of variables that should be ignored by the extension. Can be used for more fine-tuning of variables than allowed by $wgDebugMode. These vars can be any named variables known to the extension, including MediaWiki globals and PHP settings. Default is an empty array, nothing is ignored.
Example: array( 'wgDebugAPI' ) to ignore setting of $wgDebugAPI .

See also