Exemplo n.º 1
0
 public function dump($depth = null)
 {
     if ($depth == 1) {
         FOX_debug::dump($this->data);
     } else {
         FOX_debug::dump(FOX_debug::formatError_print($this->data, $depth));
     }
 }
Exemplo n.º 2
0
 function fox_exceptionHandler($error)
 {
     global $fox;
     if (method_exists($error, 'dumpString')) {
         $fox->error->add($error);
         // Not dumping errors deep enough and truncating them with
         // a "..."? xDebug is hijacking var_dump. Disable it in php.ini
         $out = $error->dumpString(array('depth' => 20, 'data' => true));
         FOX_debug::dump($out);
     } else {
         var_dump($error);
     }
 }