Extension:DebugMode

This page is a translated version of the page Extension:DebugMode and the translation is 14% complete.
MediaWiki 拡張機能マニュアル
DebugMode
リリースの状態: 保守されていない
実装 ユーザー インターフェイス
説明 Puts wiki into debug mode
作者 Ike Hecht (Tosfosトーク)
最新バージョン 0.1.0 (2014-10-28)
MediaWiki 1.23
PHP 5.3
データベースの変更 いいえ
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
  • $wgDebugMode
  • $wgDebugModeIgnoreVars
Quarterly downloads 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";
    
  •   完了 – ウィキの「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 .

関連項目