title: Dumping exception, how bad idea is to do this on production?
body: <p>I have been searching for a similar question here but found none.</p>
  
  <p>What are the real disadventages of dumping exception backtrace on production server?<br>
  When there has been some unrecoverable error and an exception has been thrown, is this a bad idea to dump it to file for later debugging? By dumping i do not mean to serialize the exception object but things like stack trace, included files, memory usage, superglobals or local variables. I am aware that this might affect performance and/or security somehow but should I count only on my users feedback or dev tests?</p>
  
  <p>Things like XDebug have really no place here because they mess so many things up an are really for development phase.</p>
  
  <p>Any feedback will be appreciated.</p>