]> git.mxchange.org Git - core.git/commitdiff
Allowed debugBackTrace() to not exit (default is to exit)
authorRoland Häder <roland@mxchange.org>
Fri, 27 Apr 2012 14:27:12 +0000 (14:27 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 27 Apr 2012 14:27:12 +0000 (14:27 +0000)
inc/classes/main/class_BaseFrameworkSystem.php

index 79a60abeb3d09d1622ad580dfb3acf70541c9191..7824280733a44f057ac5c0d746ffd3a06e503da1 100644 (file)
@@ -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('<pre>');
                debug_print_backtrace();
                print('</pre>');
-               exit();
+
+               // Exit program?
+               if ($doExit === true) {
+                       exit();
+               } // END - if
        }
 
        /**