[Catalyst] Debugging a catalyst application with the Perl debugger?
Matija Grabnar
matija at literal.si
Fri Apr 28 22:40:10 CEST 2006
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?
More information about the Catalyst
mailing list