I'm trying to debug an extension. I found the wfDebug function which seems to be widely used in the rest of the mediawiki code, but I can't seem to get it to do anything. I know that I'm running through at least one wfDebug() call but it seems to have no effect.
I've set $wgDebugLogFile to the path of a file and made sure that the web server has write access to it. I don't get any output. I then set $wgDebugComments to true but still no output.
Is there something I'm missing?
Rick DeNatale wrote:
I'm trying to debug an extension. I found the wfDebug function which seems to be widely used in the rest of the mediawiki code, but I can't seem to get it to do anything. I know that I'm running through at least one wfDebug() call but it seems to have no effect.
I've set $wgDebugLogFile to the path of a file and made sure that the web server has write access to it. I don't get any output. I then set $wgDebugComments to true but still no output.
Is there something I'm missing?
Is your PHP configured in a way that prevents file access from working?
Is the path wrong?
Did you check for error messages from PHP itself about this? Make sure error_reporting is set high enough and that errors are being either logged or displayed and that you are looking at that log or display.
-- brion vibber (brion @ pobox.com)
On 9/4/05, Brion Vibber brion@pobox.com wrote:
Rick DeNatale wrote:
I'm trying to debug an extension. I found the wfDebug function which seems to be widely used in the rest of the mediawiki code, but I can't seem to get it to do anything. I know that I'm running through at least one wfDebug() call but it seems to have no effect.
I've set $wgDebugLogFile to the path of a file and made sure that the web server has write access to it. I don't get any output. I then set $wgDebugComments to true but still no output.
Is there something I'm missing?
Is your PHP configured in a way that prevents file access from working?
Is the path wrong?
Did you check for error messages from PHP itself about this? Make sure error_reporting is set high enough and that errors are being either logged or displayed and that you are looking at that log or display.
-- brion vibber (brion @ pobox.com)
It turned out to be a permissions problem. I guess I stayed up too late last night! <G>
mediawiki-l@lists.wikimedia.org