Is is possible to create a global filter which can change every exceptions’ stacktraces before they gets printed?
I know that I can write
__STACKTRACE__ and change the stacktrace in any way I like, but this requires adding
try/rescue to every raising function.
Is there any other way to change the stacktrace of unhandled exceptions just before they get printed to the user?