Is it possible to create a custom debug page which (for example) displays the stack trace and some custom information like
An error ocurred, please copy the stack trace and mail it to xy..
How do I get the exception and the stack trace?
optional. Add an action to the page which sends the mail automatically.