From: Moritz Bunkus Date: Tue, 21 Jun 2011 13:29:07 +0000 (+0200) Subject: Mehr Dokumentation für SL/LxDebug.pm X-Git-Tag: release-2.7.0beta1~368 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=874a3b3d92d11e941545ed6307091cd3408358d2;p=kivitendo-erp.git Mehr Dokumentation für SL/LxDebug.pm --- diff --git a/SL/LXDebug.pm b/SL/LXDebug.pm index abbb035db..895b3f266 100644 --- a/SL/LXDebug.pm +++ b/SL/LXDebug.pm @@ -406,6 +406,83 @@ Shortcut for C. =back +=head1 CONFIGURATION + +C gets its configuration from the C<[debug]> section of +the C configuration file. The available options +are: + +=over 4 + +=item C + +A string of log level names that should be activated by +default. Multiple log levels are separated by C<|>. + +=item C + +A boolean (C<1> or C<0>). Turns on the C<$::form> watch facility. If +this is enabled then any key inside C<$::form> can be monitored for +changes. For example: + + # Start watching 'action' + $::form->{"Watchdog::action"} = 1; + # Stop watching 'invtotal' + $::form->{"Watchdog::invtotal"} = 0; + +A log message is written when the watchdog is enabled for a variable +and for each subsequent change. The log message includes the place +(file name and line number) of the instruction changing the key. + +Note that this entails a performance penalty. Also only the keys +themselves are monitored -- not the references they point to. E.g. the +following would not trigger a change: + + $::form->{"Watchdog::some_hash"} = 1; + # Does not trigger: + $::form->{some_hash}->{some_value} = 42; + # This does trigger: + $::form->{some_hash} = { something => 'else' }; + +=item C + +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 Lx-Office is running as a FastCGI +application because otherwise the changes would be lost when the +process exits in a normal CGI environment. + +=item C + +A boolean (C<1> or C<0>). If turned on then certain temporary files +are not removed but kept in the C directory. These include the +temporary files used during printing, e.g. LaTeX files. + +=item C + +The path and file name of the debug log file. Must be a location +writeable by the web server process. + +=back + =head1 FUNCTIONS =over 4