}
sub dump {
- my ($self, $level, $name, $variable) = @_;
+ my ($self, $level, $name, $variable, %options) = @_;
if ($data_dumper_available) {
my $password;
my $dumper = Data::Dumper->new([$variable]);
$dumper->Sortkeys(1);
+ $dumper->Indent(2);
+ $dumper->$_($options{$_}) for keys %options;
$self->message($level, "dumping ${name}:\n" . $dumper->Dump());
$variable->{password} = $password if (defined $password);
# This does trigger:
$::form->{some_hash} = { something => 'else' };
-=item C<show_debug_menu>
-
-A boolean (C<1> or C<0>). If turned on then certain debug facilities
-are available from the v1 menu. These include e.g.
-
-=over 6
-
-=item *
-
-restarting the FastCGI process by forcefully exiting after the
-request,
-
-=item *
-
-enabling and disabling function tracing,
-
-=item *
-
-enabling and disabling certain debug levels.
-
-=back
-
-Note that these are only useful if kivitendo is running as a FastCGI
-application because otherwise the changes would be lost when the
-process exits in a normal CGI environment.
-
=item C<keep_temp_files>
A boolean (C<1> or C<0>). If turned on then certain temporary files