$c->log->info("Starting the foreach loop here");
- $c->log->debug("Value of $id is: ".$id);
+ $c->log->debug("Value of \$id is: ".$id);
Then the Catalyst development server will display your message along
with the other debug output. To accomplish the same thing in a TTSite
[% Catalyst.log.debug("This is a test log message") %]
You can also use L<Data::Dumper|Data::Dumper> in both Catalyst code
-(C<use Data::Dumper; $c-E<gt>log-E<gt>debug("$var is: ".Dumper($var));)>)
+(C<use Data::Dumper; $c-E<gt>log-E<gt>debug("\$var is: ".Dumper($var));)>)
and TT templates (C<[% Dumper.dump(book) %]>.
=head1 RUNNING CATALYST UNDER THE PERL DEBUGGER