MediaWiki REL1_32
DevelopmentSettings.php
Go to the documentation of this file.
1<?php
20// Enable showing of errors
21error_reporting( -1 );
22ini_set( 'display_errors', 1 );
23
30
31// Use of wfWarn() should cause tests to fail
33
34// Enable showing of errors
36$wgShowHostnames = true;
37$wgDebugRawPage = true; // T49960
38
39// Enable log files
40$logDir = getenv( 'MW_LOG_DIR' );
41if ( $logDir ) {
42 if ( $wgCommandLineMode ) {
43 $wgDebugLogFile = "$logDir/mw-debug-cli.log";
44 } else {
45 $wgDebugLogFile = "$logDir/mw-debug-www.log";
46 }
47 $wgDBerrorLog = "$logDir/mw-dberror.log";
48 $wgDebugLogGroups['ratelimit'] = "$logDir/mw-ratelimit.log";
49 $wgDebugLogGroups['exception'] = "$logDir/mw-exception.log";
50 $wgDebugLogGroups['error'] = "$logDir/mw-error.log";
51}
52unset( $logDir );
53
54// Disable rate-limiting
global $wgDebugLogGroups
global $wgDebugTimestamps
global $wgShowHostnames
global $wgDebugLogFile
global $wgCommandLineMode
global $wgDBerrorLog
global $wgDebugComments
global $wgShowExceptionDetails
global $wgDebugRawPage
global $wgDebugDumpSql
global $wgDevelopmentWarnings
Debugging: MediaWiki.