Quote from: yehosef at Dec 25, 2006, 06:53 AM
One thing that’s come up is if there is a bug in a snippet - sometimes we get the modx error page. If it possible to customize this to give us more information (it doesn’t always give us in which file the error occurred) and to adjust what happens when an error occurs? For example - instead of dumping - it might be nice for the page to print out whatever it can so we retain the look of the site and then put a error code that would help us track it down. Also perhaps to mail us whenever such an error occurs.
Unfortunately, to do this at the moment, you have to do some pretty significant hacking to the core code. As part of the new core rewrite however, error handling will be much more robust in the next release.
In addition, since the new MODx core has an assortment of new debugging capabilities and will no longer use eval() to execute snippets, plugins, and modules, there is a lot more control over how you decide to perform error handling within your own code. You’ll even be able to use PHP 5’s exception handling features if PHP 4 compatibility is not one of your requirements, and that can really help reduce the amount and complexity of code you need to properly handle errors in your own code.
Also, keep in mind that as a MODx manager user logged into a manager session, you will also see error dumps in many cases where anonymous users will not, as not having a manager session automatically turns off PHP error_reporting during the requests to MODx.