Don't cache errors/exceptions when debug is enabled
set DEBUG from xdebug session before we first use it
Merge pull request #1712 from owncloud/debug-exception

Don't catch errors/exceptions when debug is enabled