Manual:$wgShowExceptionDetails

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