how to debug bugzilla? - Mozilla

This is a discussion on how to debug bugzilla? - Mozilla ; i'm an absolute newbie with perl so go easy on me. am trying to debug
the Bugzilla/Bug.pm module and need to know the easiest way to debug
it. just need to print out the values of some variables. have already
...

how to debug bugzilla?

i'm an absolute newbie with perl so go easy on me. am trying to debug
the Bugzilla/Bug.pm module and need to know the easiest way to debug
it. just need to print out the values of some variables. have already
tried using a simple 'print $my_variable' statement but can't seem to
find where the standard output it going to. it's definitely not going
to apache error_log!

set the log level in the apache httpd.conf file to 'warn' and and
restarted apache but still get nothing in the error_log using the
warn() function. the error_log is showing past compile errors but no
runtime warnings. we're using apache 2.2.6 and bugzilla 3.0.5.

Re: how to debug bugzilla?

On Fri, 3 Oct 2008 13:06:48 -0700 (PDT) rick.bryant@gxs.com wrote:
> set the log level in the apache httpd.conf file to 'warn' and and
> restarted apache but still get nothing in the error_log using the
> warn() function.

If you're accessing things over SSL, you might have to look in
the ssl_error_log. I've forgotten that myself a few times.
> ultimately trying to get the following function to work:
> [snip]

Just so you know, all your code looks right, provided that
_check_cf_is_rts is inside of Bugzilla::Bug.
> ThrowCodeError('illegal_field',{ field => $field });

That's probably the wrong error, though. ThrowCodeError will
display a message that the user should contact the administrator, and
then the error you've specified.