手册:$wgShowExceptionDetails

This page is a translated version of the page Manual:$wgShowExceptionDetails and the translation is 38% complete.
调试: $wgShowExceptionDetails
If set to true, uncaught exceptions will print a detailed stack trace to output.
引进版本:1.8.1 (r16944)
移除版本:仍在使用
允许的值:(布尔值)
默认值:false

详情

If set to true, uncaught exceptions will print a detailed stack trace to output, with argument values replaced with type names. This should only be used for debugging, as it may reveal private information in function parameters due to PHP's backtrace formatting.

With the default false, users are shown only an error message "类型“MWException”的致命异常" with an alphanumeric code that a person with access to the server logs can use to find the stack trace. Without this information, it's impossible to help fix the error.

To enable this, add the following line to your LocalSettings.php :

$wgShowExceptionDetails = true;