class Debug (View source)

Methods

static void
unregister()

Unregister debug events

static void
renderError(int $type, string $message, string $file, int $line)

Render a View to error

static void
renderPerformance()

Render a View to show performance, memory and time to display page

static void
renderClasses()

Render a View to show performance and show declared classes

static void
view(string $type, string $view)

Register a debug views

static array
performance()

Get memory usage and you can also use it to calculate runtime.

static array
classes()

Get declared classes

static array|null
source(string $file, int $line)

Get snippet from a file

static array|null
caller(int $level = 0)

Get backtrace php scripts

static string
searcherror(string $message)

Convert error message in a link, see system/config/debug.php

Details

static void unregister()

Unregister debug events

Return Value

void

static void renderError(int $type, string $message, string $file, int $line)

Render a View to error

Parameters

int $type
string $message
string $file
int $line

Return Value

void

static void renderPerformance()

Render a View to show performance, memory and time to display page

Return Value

void

static void renderClasses()

Render a View to show performance and show declared classes

Return Value

void

static void view(string $type, string $view)

Register a debug views

Parameters

string $type
string $view

Return Value

void

Exceptions

Exception

static array performance()

Get memory usage and you can also use it to calculate runtime.

Return Value

array

static array classes()

Get declared classes

Return Value

array

static array|null source(string $file, int $line)

Get snippet from a file

Parameters

string $file
int $line

Return Value

array|null

static array|null caller(int $level = 0)

Get backtrace php scripts

Parameters

int $level

Return Value

array|null

static string searcherror(string $message)

Convert error message in a link, see system/config/debug.php

Parameters

string $message

Return Value

string