MediaWiki REL1_31
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
37$wgShowSQLErrors = true;
38$wgDebugRawPage = true; // T49960
39
40// Enable log files
41$logDir = getenv( 'MW_LOG_DIR' );
42if ( $logDir ) {
43 if ( $wgCommandLineMode ) {
44 $wgDebugLogFile = "$logDir/mw-debug-cli.log";
45 } else {
46 $wgDebugLogFile = "$logDir/mw-debug-www.log";
47 }
48 $wgDBerrorLog = "$logDir/mw-dberror.log";
49 $wgDebugLogGroups['ratelimit'] = "$logDir/mw-ratelimit.log";
50 $wgDebugLogGroups['exception'] = "$logDir/mw-exception.log";
51 $wgDebugLogGroups['error'] = "$logDir/mw-error.log";
52}
53unset( $logDir );
54
60
61// Disable rate-limiting to allow integration tests to run unthrottled
62// in CI and for devs locally (T225796)
63$wgRateLimits = [];
64
65// Enable Special:JavaScriptTest and allow `npm run qunit` to work
66// https://www.mediawiki.org/wiki/Manual:JavaScript_unit_testing
68
75
76// Enable MariaDB/MySQL strict mode (T108255)
77$wgSQLMode = 'TRADITIONAL';
78
79// Disable legacy javascript globals in CI and for devs (T72470)
global $wgSQLMode
Experimental changes that may later become the default.
global $wgEnableJavaScriptTest
global $wgDebugLogGroups
global $wgDebugLogFile
global $wgCommandLineMode
global $wgLegacyJavaScriptGlobals
global $wgDBerrorLog
global $wgShowExceptionDetails
global $wgDebugRawPage
global $wgShowDBErrorBacktrace
global $wgDevelopmentWarnings
Debugging: MediaWiki.
global $wgRateLimits
Make testing possible (or easier)
global $wgShowSQLErrors