From: Roland Häder Date: Sun, 26 Aug 2012 11:41:38 +0000 (+0000) Subject: Full backtrace now X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b9a36f77d698a3b08d6bcd81e30259a7a71639b4;p=hub.git Full backtrace now --- diff --git a/application/hub/exceptions.php b/application/hub/exceptions.php index 340266b06..dbce802e7 100644 --- a/application/hub/exceptions.php +++ b/application/hub/exceptions.php @@ -25,14 +25,12 @@ function hub_exception_handler ($exceptionInstance) { // Is it an object and a valid instance? if ((is_object($exceptionInstance)) && ($exceptionInstance instanceof FrameworkException)) { - // Get the regular trace - $trace = $exceptionInstance->getTrace(); - - // Get 3 call levels + // Init variable $backTrace = ''; - for ($idx = 0; $idx < 3; $idx++) { - // Copy array for argument analysis and init variable - $traceArray = $trace[$idx]; + + // Get all call levels from backtrace + foreach ($exceptionInstance->getTrace() as $idx => $traceArray) { + // Init argument string $argsString = ''; // Convert arguments type into human-readable @@ -60,7 +58,7 @@ Line : %d\n", basename($traceArray['file']), $traceArray['line'] ); - } // END - for + } // END - foreach // Construct the message $message = sprintf("--------------------------------------------------------------------------------