MediaWiki REL1_31
DevelopmentSettings.php File Reference

Extra settings useful for MediaWiki development. More...

Go to the source code of this file.

Variables

 $logDir = getenv( 'MW_LOG_DIR' )
 
global $wgCommandLineMode
 
global $wgDBerrorLog
 
global $wgDebugLogFile
 
global $wgDebugLogGroups
 
global $wgDebugRawPage = true
 
global $wgDevelopmentWarnings = true
 Debugging: MediaWiki.
 
global $wgEnableJavaScriptTest = true
 
global $wgLegacyJavaScriptGlobals = false
 
global $wgRateLimits = []
 Make testing possible (or easier)
 
global $wgShowDBErrorBacktrace = true
 
global $wgShowExceptionDetails = true
 
global $wgShowSQLErrors = true
 
global $wgSQLMode = 'TRADITIONAL'
 Experimental changes that may later become the default.
 

Detailed Description

Extra settings useful for MediaWiki development.

To enable built-in debug and development settings, add the following to your LocalSettings.php file.

require "$IP/includes/DevelopmentSettings.php";

Alternatively, if running phpunit.php (or another Maintenance script), you can use the –mwdebug option to automatically load these settings.

Definition in file DevelopmentSettings.php.

Variable Documentation

◆ $logDir

$logDir = getenv( 'MW_LOG_DIR' )

Definition at line 41 of file DevelopmentSettings.php.

◆ $wgCommandLineMode

◆ $wgDBerrorLog

global $wgDBerrorLog

Definition at line 29 of file DevelopmentSettings.php.

◆ $wgDebugLogFile

global $wgDebugLogFile

Definition at line 28 of file DevelopmentSettings.php.

◆ $wgDebugLogGroups

global $wgDebugLogGroups

Definition at line 29 of file DevelopmentSettings.php.

◆ $wgDebugRawPage

$wgDebugRawPage = true

Definition at line 28 of file DevelopmentSettings.php.

◆ $wgDevelopmentWarnings

$wgDevelopmentWarnings = true

Debugging: MediaWiki.

Definition at line 27 of file DevelopmentSettings.php.

◆ $wgEnableJavaScriptTest

$wgEnableJavaScriptTest = true

Definition at line 59 of file DevelopmentSettings.php.

◆ $wgLegacyJavaScriptGlobals

$wgLegacyJavaScriptGlobals = false

Definition at line 74 of file DevelopmentSettings.php.

◆ $wgRateLimits

$wgRateLimits = []

Make testing possible (or easier)

Definition at line 59 of file DevelopmentSettings.php.

◆ $wgShowDBErrorBacktrace

$wgShowDBErrorBacktrace = true

Definition at line 27 of file DevelopmentSettings.php.

◆ $wgShowExceptionDetails

$wgShowExceptionDetails = true

Definition at line 27 of file DevelopmentSettings.php.

◆ $wgShowSQLErrors

$wgShowSQLErrors = true

Definition at line 27 of file DevelopmentSettings.php.

◆ $wgSQLMode

$wgSQLMode = 'TRADITIONAL'

Experimental changes that may later become the default.

(Must reference a Phabricator ticket)

Definition at line 74 of file DevelopmentSettings.php.