[Catalyst] Debugging Catalyst with Eclipse

Jonathan Rockway jon at jrock.us
Mon Jan 21 19:42:53 GMT 2008


On Mon, 2008-01-21 at 13:35 -0600, Nathan Waddell wrote:
> Dmitriy,
>  I've been using Catalyst::Log to create debugging statements,
> combined with Data::Dump to output my data structures in certain
> places. It's crude, but it works.
> 
> I'm going to try your method. Does it support breakpoints from within
> Eclipse? What limitations have you noticed?

You can set debugger breakpoints from within any editor.  Just add this
to your code where you want the debugger to stop:

  $DB::single = 1;

You can make it a conditional breakpoint also:

  $DB::single = defined $c->req->params->{break};

Enjoy.

Regards,
Jonathan Rockway

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080121/2c66adc6/attachment.pgp


More information about the Catalyst mailing list