Extension:DebugMode/es
A request to archive this extension has been made on Phabricator. See task T346577 for the archival request and the rationale for the request, and to leave comments about the request. |
¡En estos momentos no hay nadie que se encargue del mantenimiento de esta extensión! Aunque todavía puede que funcione, los informes sobre errores o peticiones de nuevas funcionalidades serán probablemente ignorados. Si estás interesado en el desarrollo y mantenimiento de esta extensión, puedes solicitar acceso al repositorio. Como cortesía, puede que quieras contactar a su autor. También deberás quitar esta plantilla y añadirte como encargado del mantenimiento de esta extensión en la plantilla {{extension}} de la página. |
DebugMode Estado de lanzamiento: sin mantenimiento |
|
---|---|
Implementación | Interfaz de usuario |
Descripción | Puts wiki into debug mode |
Autor(es) | Ike Hecht (Tosfosdiscusión) |
Última versión | 0.1.0 (2014-10-28) |
MediaWiki | 1.23 |
PHP | 5.3 |
Cambios de la base de datos | No |
Licencia | GNU Licencia Pública general 2.0 o posterior |
Descarga | |
|
|
Descargas trimestrales | 0 |
Traduce la extensión DebugMode si está disponible en translatewiki.net | |
The DebugMode extension puts the wiki into debug mode, which means all MediaWiki debugging parameters are switched on.
Instalación
- Descarga y extrae los archivos en un directorio denominado «
DebugMode
» dentro de la carpetaextensions/
.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DebugMode - Añade el siguiente código en la parte final de tu archivo LocalSettings.php :
require_once "$IP/extensions/DebugMode/DebugMode.php";
- Hecho – Navega a Special:Version en el wiki para verificar que la extensión se haya instalado correctamente.
Configuration parameters
$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
.
See also
- The file DevelopmentSettings.php.