Manual:$wgDebugComments

From MediaWiki.org
Jump to: navigation, search
Debug/logging: $wgDebugComments

Introduced in version: pre 1.1.0
Removed in version: still in use
Allowed values: (boolean)
Default value: false

Other settings: Alphabetical | By Function


[edit] Details

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.

Language: English  • Français • 日本語
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox