Browse code

print stack trace with exception

Bernd Wurst authored on10/04/2019 20:58:00
Showing1 changed files
... ...
@@ -472,8 +472,10 @@ function get_modules_info()
472 472
 function handle_exception($e)
473 473
 {
474 474
     if (config('enable_debug')) {
475
-        print_r($e->getMessage());
476
-        print_r(serialize($_POST));
475
+        print_r($e->getMessage()."<br>");
476
+        debug_print_backtrace();
477
+        echo("<br>");
478
+        print_r(serialize($_POST)."<br>");
477 479
         print_r(serialize($_SERVER));
478 480
     } else {
479 481
         $msg = "Exception caught:\n".$e->getMessage()."\n".serialize($_POST)."\n".serialize($_SERVER);