X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/3ff4ec3b71a043e3802ef21838a0cee6d8535e4e..5f4e1abaa176f78878fc7e0977fd8307d00bb7d8:/SL/Dispatcher.pm diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 8c450ad77..2c0539bb8 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -82,6 +82,10 @@ sub pre_startup_setup { %::myconfig = (); %::called_subs = (); # currently used for recursion detection } + + $SIG{__WARN__} = sub { + $::lxdebug->warn(@_); + } } sub pre_startup_checks { @@ -94,6 +98,7 @@ sub pre_startup { } sub require_main_code { + $::lxdebug->enter_sub; my ($script, $suffix) = @_; eval { @@ -115,6 +120,7 @@ sub require_main_code { }; $::form->error($EVAL_ERROR) if ($EVAL_ERROR); } + $::lxdebug->leave_sub; } sub handle_request {