diff --git a/examples/Nette/Debugger.php b/examples/Nette/Debugger.php index 1872014..9f40af1 100644 --- a/examples/Nette/Debugger.php +++ b/examples/Nette/Debugger.php @@ -11,7 +11,7 @@ * @package Nette\Diagnostics */ -interface +define('NETTE_DIR',dirname(__FILE__));interface IBarPanel{function getTab();function getPanel();}class @@ -29,7 +29,7 @@ as$id=>$panel){try{$panels[]=array('id'=>preg_replace('#[^a-z0-9]+#i','-',$id),' - + @@ -111,7 +111,7 @@ DebugBlueScreen{private$panels=array();public function addPanel($panel,$id=NULL){if($id===NULL){$this->panels[]=$panel;}else{$this->panels[$id]=$panel;}}public function -render(Exception$exception){if(class_exists('Environment',FALSE)){$application=Environment::getContext()->hasService('Nette\\Application\\Application',TRUE)?Environment::getContext()->getService('Nette\\Application\\Application'):NULL;}$panels=$this->panels;static$errorTypes=array(E_ERROR=>'Fatal Error',E_USER_ERROR=>'User Error',E_RECOVERABLE_ERROR=>'Recoverable Error',E_CORE_ERROR=>'Core Error',E_COMPILE_ERROR=>'Compile Error',E_PARSE=>'Parse Error',E_WARNING=>'Warning',E_CORE_WARNING=>'Core Warning',E_COMPILE_WARNING=>'Compile Warning',E_USER_WARNING=>'User Warning',E_NOTICE=>'Notice',E_USER_NOTICE=>'User Notice',E_STRICT=>'Strict',E_DEPRECATED=>'Deprecated',E_USER_DEPRECATED=>'User Deprecated');$title=($exception +render(Exception$exception){$panels=$this->panels;static$errorTypes=array(E_ERROR=>'Fatal Error',E_USER_ERROR=>'User Error',E_RECOVERABLE_ERROR=>'Recoverable Error',E_CORE_ERROR=>'Core Error',E_COMPILE_ERROR=>'Compile Error',E_PARSE=>'Parse Error',E_WARNING=>'Warning',E_CORE_WARNING=>'Core Warning',E_COMPILE_WARNING=>'Compile Warning',E_USER_WARNING=>'User Warning',E_NOTICE=>'Notice',E_USER_NOTICE=>'User Notice',E_STRICT=>'Strict',E_DEPRECATED=>'Deprecated',E_USER_DEPRECATED=>'User Deprecated');$title=($exception instanceof FatalErrorException&&isset($errorTypes[$exception->getSeverity()]))?$errorTypes[$exception->getSeverity()]:get_class($exception);$expandPath=NETTE_DIR.DIRECTORY_SEPARATOR;$counter=0;?> @@ -125,7 +125,7 @@ FatalErrorException&&isset($errorTypes[$exception->getSeverity()]))?$errorTypes[ htmlspecialchars($title)?> - + @@ -182,18 +182,16 @@ htmlSpecialChars($panel['tab'])?> ▼ getTrace();$expanded=NULL?> getFile(),$expandPath)===0){foreach($stack as$key=>$row){if(isset($row['file'])&&strpos($row['file'],$expandPath)!==0){$expanded=$key;break;}}}?> - getFile())):?> +
File: getFile(),$ex->getLine())),'">'?> - getFile()),(Debugger::$editor?'':'')?> Line: getLine()?>
-getFile(),$ex->getLine())?>+
File: getFile(),$ex->getLine())?> Line: getLine()?>
+ getFile())):?>getFile(),$ex->getLine(),15,isset($ex->context)?$ex->context:NULL)?>