I have been searching for a similar question here but found none.
What are the real disadventages of dumping exception backtrace on production server?
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?
Things like XDebug have really no place here because they mess so many things up an are really for development phase.
Any feedback will be appreciated.