Hi all,
I'm a long-time user of MediaWiki software, and recently ventured into writing extensions and code modifications. I noticed when perusing the code files that there are a number of debugging messages scattered throughout with phrases calling wfDebug. It appears that these messages are turned off in the production releases of MediaWiki.
Can anyone tell me where the "switch" resides that will turn on these messages? I have three versions of MediaWiki installed on a development machine and would like to turn these on when developing extensions to make sure there are no conflicts, especially since I'm using some "include" statements that pull MediaWiki base code files into some of the extension so I can access the functions in those files.
I have error messages enabled in both MySQL and PHP for my development computer.
Any assistance here would be greatly appreciated.
Thanks!
Lisa
On 20/02/07, Lisa Ridley lhridley@theridleys.org wrote:
I'm a long-time user of MediaWiki software, and recently ventured into writing extensions and code modifications. I noticed when perusing the code files that there are a number of debugging messages scattered throughout with phrases calling wfDebug. It appears that these messages are turned off in the production releases of MediaWiki.
These cause writes to the various debug logs; another one to look out for is wfDebugLogFile, which directs debugging output to a specific log group.
See $wgDebugLogFile and $wgDebugLogGroups (both commented in includes/DefaultSettings.php) for further details.
Rob Church
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Lisa Ridley wrote:
I'm a long-time user of MediaWiki software, and recently ventured into writing extensions and code modifications. I noticed when perusing the code files that there are a number of debugging messages scattered throughout with phrases calling wfDebug. It appears that these messages are turned off in the production releases of MediaWiki.
Can anyone tell me where the "switch" resides that will turn on these messages?
Set $wgDebugLogFile to point to a (writable) file; debug messages will be sent there.
Note that you can also assign messages to individual log files by using wfDebugLog() instead of wfDebug() and setting up separate files for the groups you're interested in in $wgDebugLogGroups
- -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)
mediawiki-l@lists.wikimedia.org