diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 27e9c4db8..8d63847b1 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -5569,6 +5569,7 @@ json2reading($$;$$$$) sub Debug($) { my $msg= shift; + stacktrace() if(AttrNum('global','stacktrace',0) == 1); Log 1, "DEBUG>" . $msg; }