Carp::Always::EvenObjects::Hacks - Enable built in stack traces on exception objects
use Carp::Always::EvenObjects::Hacks; use Exception::Class 'MyException'; MyException->throw; # includes stack trace
Many existing exception module can provide stack traces, but this is often not the default setting. This module will force as many modules as possible to include stack traces by default. It can be loaded before or after the exception modules, and it will still function.
Exception::Class
Ouch
Class::Throwable
Exception::Base
Error
This module relies partly on the internal implementation of the modules it effects. Future updates to the modules could break or be broken by this module.
To install Carp::Always::EvenObjects, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Carp::Always::EvenObjects
CPAN shell
perl -MCPAN -e shell install Carp::Always::EvenObjects
For more information on module installation, please visit the detailed CPAN module installation guide.