Class Debug
Methods summary
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
#
error_handler( integer $no, string $str, string $file, integer $line, array $context )
Handles errors. |
public static
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
#
format_code_sample( string $file, integer $line = 0 )
Extracts and formats a code sample around the line that triggered the alert. |
public static
|
|
public static
string[]
|
|
public static
string[]
|
Constants summary
string |
MODE_DEV
|
#
'dev'
|
string |
MODE_STAGE
|
#
'stage'
|
string |
MODE_PRODUCTION
|
#
'production'
|
integer |
MAX_STRING_LEN
|
#
16
|
Properties summary
public static
string
|
$mode
|
#
'dev'
|
public static
array[string]mixed
|
$last_error
Last error. |
|
public static
string
|
$last_error_message
Last error message. |