X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=inc%2Fclasses%2Fmain%2Fclass_BaseFrameworkSystem.php;h=75b851f85ef69b80fd3b5f8d88a652e65d8c1259;hb=b226bbefe6bc09bcd75432c3c3ba32bf7da45b71;hp=0db6d280177635b337afad2730293252e5513607;hpb=792542694524c78ffc47fb8c18ab9615f98c76ca;p=shipsimu.git diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index 0db6d28..75b851f 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -952,6 +952,19 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { } return $className; } + + /** + * Outputs a debug backtrace and stops further script execution + * + * @return void + */ + public function debugBacktrace () { + // Sorry, there is no other way getting this nice backtrace + print "
\n";
+		debug_print_backtrace();
+		print "
"; + exit; + } } // [EOF]