From: Roland Häder Date: Fri, 27 Apr 2012 14:27:12 +0000 (+0000) Subject: Allowed debugBackTrace() to not exit (default is to exit) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5be04aa21c5338880208dd02b87122e8291aecec;p=core.git Allowed debugBackTrace() to not exit (default is to exit) --- diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index 79a60abe..78242807 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -973,9 +973,10 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { * Outputs a debug backtrace and stops further script execution * * @param $message An optional message to output + * @param $doExit Whether exit the program (true is default) * @return void */ - public function debugBackTrace ($message = '') { + public function debugBackTrace ($message = '', $doExit = true) { // Sorry, there is no other way getting this nice backtrace if (!empty($message)) { // Output message @@ -985,7 +986,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { print('
');
 		debug_print_backtrace();
 		print('
'); - exit(); + + // Exit program? + if ($doExit === true) { + exit(); + } // END - if } /**