Podręcznik:$wgDebugComments

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgDebugComments and the translation is 27% complete.

Other languages:
English • ‎español • ‎français • ‎magyar • ‎polski • ‎日本語
Debug/logging: $wgDebugComments
Include portions of log output in page HTML comment
Wprowadzono w wersji:pre 1.1.0
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(boolean)
Domyślna wartość:false
Inne ustawienia: Alfabetycznie | Według funkcji

Szczegóły

If on, some debug items may appear in comments in the HTML output. As of MediaWiki-1.8.2, function outputPage() writes one HTML comment near the beginning of the page body with the template:

<!-- Wiki debugging output: ... comment debug text ... -->

Debug text passed to function wfDebug() is included in the text of this debug comment unless an optional second parameter (named logonly) is passed to wfDebug() which evaluates as true.

Use on production sites is not recommended. Debug comments reveal information in page views which could potentially expose security risks.

Zobacz też