]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Dispatcher.pm
Stacktrace an Exception anhängen (über Konfigurationssetting einschaltbar)
[mfinanz.git] / SL / Dispatcher.pm
index 93d3a18e6c491d6455758b5d8a025aaa22c0e401..a52e4bd4b05f855c7930fdba85626159e86c9669 100644 (file)
@@ -16,6 +16,7 @@ BEGIN {
   unshift @INC, $exe_dir;
 }
 
+use Carp;
 use CGI qw( -no_xhtml);
 use Config::Std;
 use DateTime;
@@ -128,6 +129,8 @@ sub pre_startup_setup {
     $::lxdebug->warn(@_);
   };
 
+  $SIG{__DIE__} = sub { Carp::confess( @_ ) } if $::lx_office_conf{debug}->{backtrace_on_die};
+
   $self->_cache_file_modification_times;
 }