my $private;
my $work_time;
my $fetch_extension_info = 0;
+my $debug;
GetOptions('help|h|?' => \$help,
'uri=s' => \$Bugzilla_uri,
'comment:s' => \$add_comment,
'private:i' => \$private,
'worktime:f' => \$work_time,
- 'extension_info' => \$fetch_extension_info
+ 'extension_info' => \$fetch_extension_info,
+ 'debug' => \$debug
) or pod2usage({'-verbose' => 0, '-exitval' => 1});
=head1 OPTIONS
If specified on the command line, the script returns the information about the
extensions that are installed.
+=item --debug
+
+Enable tracing at the debug level of XMLRPC requests and responses.
+
=back
=head1 DESCRIPTION
my $proxy = XMLRPC::Lite->proxy($Bugzilla_uri,
'cookie_jar' => $cookie_jar);
+=head2 Debugging
+
+Enable tracing at the debug level of XMLRPC requests and responses if requested.
+
+=cut
+
+if ($debug) {
+ $proxy->import(+trace => 'debug');
+}
+
=head2 Checking Bugzilla's version
To make sure the Bugzilla you're connecting to supports the methods you wish to