From: Alan Date: Wed, 4 Oct 2023 02:18:06 +0000 (+0800) Subject: try adding error tracking to exceptions X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=225ab41209e2a79eef83cb29967c95b3398d1685 try adding error tracking to exceptions --- diff --git a/Pman.php b/Pman.php index 5aed24b..d4ceec3 100644 --- a/Pman.php +++ b/Pman.php @@ -1101,6 +1101,11 @@ class Pman extends HTML_FlexyFramework_Page //convert the huge backtrace into something that is readable.. $out .= "\n" . implode("\n", $ret); + + $de = ini_set('display_errors', 0); + trigger_error($out , E_USER_NOTICE); // note this should enable backtracing the real erorr? + ini_set('display_errors', $de ); + $this->addEvent("EXCEPTION", false, $out); if ($this->showErrorToUser) {