Nette\Configurator::enableDebugger PHP Method

enableDebugger() public method

public enableDebugger ( $logDirectory = NULL, $email = NULL ) : void
return void
    public function enableDebugger($logDirectory = NULL, $email = NULL)
    {
        Tracy\Debugger::$strictMode = TRUE;
        Tracy\Debugger::enable(!$this->parameters['debugMode'], $logDirectory, $email);
        Nette\Bridges\Framework\TracyBridge::initialize();
    }

Usage Example

 /**
  * @param Configurator
  * @return void
  */
 protected function setupDebugger(Configurator $configurator)
 {
     if (($allowedIPsForDebugging = $this->options->getAllowedIPsForDebugging()) !== NULL) {
         $configurator->setDebugMode($allowedIPsForDebugging);
     }
     $configurator->enableDebugger($this->options->getLogDirectory(), $this->options->getErrorNotificationEmail());
 }
All Usage Examples Of Nette\Configurator::enableDebugger