How to set debug log on mediawiki: Difference between revisions

No edit summary
Line 53: Line 53:


要添加到 LocalSettings.php 中的示例行:
要添加到 LocalSettings.php 中的示例行:
<syntaxhighlight lang="bash">
$wgShowExceptionDetails = true;
</syntaxhighlight>


$wgShowExceptionDetails = true;
或者,在 <?php 下面添加这段代码可显示 php 错误:
<syntaxhighlight lang="bash">
error_reporting( -1 );
ini_set( 'display_errors', 1 );
</syntaxhighlight>