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

Alan Humphrey alan.humphrey at comcast.net
Fri Apr 28 23:07:03 CEST 2006


might help...

-----Original Message-----
From: catalyst-bounces at lists.rawmode.org
[mailto:catalyst-bounces at lists.rawmode.org] On Behalf Of Matija Grabnar
Sent: Friday, April 28, 2006 1:40 PM
To: The elegant MVC web framework
Subject: [Catalyst] Debugging a catalyst application with the Perl debugger?

I know a lot of people debug their Catalyst applications by just logging 
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

The problem is, I can't seem to set the breakpoints, or step to the 
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

More information about the Catalyst mailing list