[Catalyst] Debugging a catalyst application with the Perl debugger?

Thomas Hartman tphyahoo at gmail.com
Fri Apr 28 22:49:40 CEST 2006

Have you tried log4perl? I've started using that for debugging, and
it's great. When you're done with the debugging phase of your project
you just bump the log level from "debug" up to "error" or whatever,
and now you're only logging if something goes seriously wrong.

So even if logging is the only option with catalyst, maybe you should
give it a chance... I believe there is even a log4perl plugin for

I feel like I've definitely earned back the time it took me to read
the log4perl tutorial at


2006/4/28, Matija Grabnar <matija at literal.si>:
> I know a lot of people debug their Catalyst applications by just logging
> stuff.
> However, I find I'm more productive when I can single-step through the code
> with a perl debugger, and examine variables at my leisure.
> I created a simple script that sets up the environment variables the way a
> HTTP server would have, and then calls perl -d script/myapp_cgi.pl
> That works - I see the same output come out as if I had run it through the
> browser.
> The problem is, I can't seem to set the breakpoints, or step to the
> Controler
> routine that I want to debug.
> If I have package MyApp::Controller::User; and within it
> sub register: Path('register') {...}, and try to set a breakpoint at
> MyApp:Controller::User::register the debugger accepts it - but then
> doesn't break at the appropriate routine - it just runs to the end.
> What am I doing wrong?
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst

More information about the Catalyst mailing list