WebServices: quick code walk through

Max Kanat-Alexander mkanat at bugzilla.org
Tue Jul 1 05:09:09 UTC 2008


On Mon, 30 Jun 2008 22:55:04 -0600 "Scott Saad" <saadsj at gmail.com>
wrote:
> I spent some time today looking through the code, starting with the
> xmlrpc.cgi. Your walk through did help lead me in the right
> direction. Thank you for that.

	Great. :-)

> Please bare with me for a bit while I try and familiarize myself with
> the code base and surrounding environment.

	No problem, that's always the way it is with a new project. I
myself am working on another project these days where there's a LOT to
learn, and so I know exactly what you're talking about.

> Sometimes I feel that
> having some way to debug or test the code is a great way to help the
> learning process. Can you recommend ways of doing this? Meaning, can
> a debugger be used, or test environments setup to help step through
> code, etc?

	There's nothing that makes this very easy with raw Perl in the
web server. If you want to see data structures, you can use
Data::Dumper like:

	use Data::Dumper; print Dumper($some_var)

	It's also usable in the templates through the Dumper plugin for
Template Toolkit (documented on the template toolkit site).

	-Max
-- 
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.



More information about the developers mailing list