Properties

$debugString

$debugString : string

Type

string

$debugFile

$debugFile : string

Type

string

Methods

getDebugFormatter()

getDebugFormatter() : \Phug\Formatter

Returns

\Phug\Formatter

reInitOptions()

reInitOptions(  $options) 

Reinitialize debug options then set new options.

Parameters

$options

handleError()

handleError(\Throwable  $error, integer  $code, string  $path, string  $source, array  $parameters, array  $options) 

Handle error occurred in compiled PHP.

Parameters

\Throwable $error
integer $code
string $path
string $source
array $parameters
array $options

Throws

\Phug\RendererException
\Throwable

setDebugFile()

setDebugFile(string  $debugFile) 

Parameters

string $debugFile

setDebugString()

setDebugString(string  $debugString) 

Parameters

string $debugString

setDebugFormatter()

setDebugFormatter(\Phug\Formatter  $debugFormatter) 

Parameters

\Phug\Formatter $debugFormatter

initDebugOptions()

initDebugOptions(\Phug\Renderer  $profilerContainer) 

Parameters

\Phug\Renderer $profilerContainer

highlightLine()

highlightLine(  $lineText,   $colored,   $offset,   $options) 

Parameters

$lineText
$colored
$offset
$options

getErrorAsHtml()

getErrorAsHtml(  $error,   $parameters,   $data) 

Parameters

$error
$parameters
$data

getErrorMessage()

getErrorMessage(  $error, \Phug\Util\SourceLocation  $location,   $data) 

Parameters

$error
\Phug\Util\SourceLocation $location
$data

getRendererException()

getRendererException(  $error,   $code,   $line,   $offset,   $source,   $sourcePath,   $parameters,   $options) 

Parameters

$error
$code
$line
$offset
$source
$sourcePath
$parameters
$options

hasColorSupport()

hasColorSupport() 

getDebuggedException()

getDebuggedException(  $error,   $code,   $source,   $path,   $parameters,   $options) 

Parameters

$error
$code
$source
$path
$parameters
$options