CatalystX::REPL - read-eval-print-loop for debugging your Catalyst application
# Requires Catalyst 5.8 series
Using Carp::REPL with a Catalyst application is hard. That's because of all the internal exceptions that are being thrown and caught by Catalyst during application startup. You'd have to manually skip over all of those.
This role works around that by automatically setting up Carp::REPL after starting your application, if the CATALYST_REPL or MYAPP_REPL environment variables are set:
# Hit an action
42 at lib/MyApp/Controller/Foo.pm line 8.
# instead of exiting, you get a REPL!
Trace begun at lib/MyApp/Controller/Foo.pm line 8
MyApp::Controller::Foo::bar('MyApp::Controller::Foo=HASH(0xc9fe20)', 'MyApp=HASH(0xcea6a4)') called at ...
... # Many more lines of stack trace
Options like warn or nodie can be passed to Carp::REPL by putting them, seperated by commas, into the environment variable:
Carp::REPL uses Devel::REPL for the shell, so direct any questions how how to use or customize the repl at that module.
Tomas Doran <firstname.lastname@example.org>
Florian Ragwitz <email@example.com>
Ash Berlin <firstname.lastname@example.org>
This software is copyright (c) 2009 by Florian Ragwitz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install CatalystX::REPL, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.