Extension:DebugMode
![]() | 現在、この拡張機能は積極的な保守が行われていません! それでも機能する可能性はありますが、バグ報告や機能の要望は無視される可能性が高くなります。 この拡張機能の開発や保守の作業を引き受けることに興味がある場合は、リポジトリの所有権を申請できます。 礼儀として、作者に問い合わせることをお勧めします。 保守を引き継いだ場合、このテンプレートは除去すべきです。また、拡張機能ページの {{extension}} 基礎情報ボックス内のリストにあなたの名前を保守担当者として追加してください。 |
![]() リリースの状態: 保守されていない |
|
---|---|
実装 | ユーザー インターフェイス |
説明 | Puts wiki into debug mode |
作者 | Ike Hecht (Tosfosトーク) |
最新バージョン | 0.1.0 (2014-10-28) |
MediaWiki | 1.23 |
PHP | 5.3 |
データベースの変更 | いいえ |
ライセンス | GNU 一般公衆利用許諾書 2.0 以降 |
ダウンロード | |
|
|
Quarterly downloads | 2 (Ranked 168th) |
translatewiki.net で翻訳を利用できる場合は、DebugMode 拡張機能の翻訳にご協力ください | |
The DebugMode extension puts the wiki into debug mode, which means all MediaWiki debugging parameters are switched on.
インストール
- ダウンロードして、ファイルを
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 orfalse
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:
DebugMode::DEBUG_MODE_NONE
: the extension does nothing, equivalent tofalse
;
Except in this mode, the following MediaWiki’s parameters are activated:$wgColorErrors
$wgDebugAPI
$wgDebugComments
$wgDebugDBTransactions
$wgDebugDumpSql
$wgDebugFunctionEntry
$wgDebugPrintHttpHeaders
$wgDebugTimestamps
$wgDebugToolbar
$wgDevelopmentWarnings
$wgLogExceptionBacktrace
$wgShowDBErrorBacktrace
$wgShowExceptionDetails
$wgShowSQLErrors
$wgProfileLimit
is set to0.0
,
DebugMode::DEBUG_MODE_INI
: set PHP’sdisplay_errors
totrue
;DebugMode::DEBUG_MODE_PHP
: set PHP’serror_reporting
to-1
(all debugging messages);DebugMode::DEBUG_MODE_VERBOSE
: activate MediaWiki’s$wgShowDebug
;DebugMode::DEBUG_MODE_CACHE
: deactivate MediaWiki’s$wgCachePages
,$wgDeprecationReleaseLimit
, and$wgEnableParserCache
;DebugMode::DEBUG_MODE_RESOURCE_LOADER
: activate MediaWiki’s$wgResourceLoaderDebug
and set MediaWiki’s$wgResourceLoaderMaxage
to1
;DebugMode::DEBUG_MODE_INSECURE
: (unused);DebugMode::DEBUG_MODE_ALL
: all debugging modes are activated, equivalent totrue
.
- Default value is a reasonable level of debugging, which is
DebugMode::DEBUG_MODE_ALL
minusDebugMode::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
.
関連項目
- The file DevelopmentSettings.php.