Debug
class Debug (View source)
Methods
Unregister debug events
Render a View to error
Render a View to show performance, memory and time to display page
Render a View to show performance and show declared classes
Register a debug views
Get memory usage and you can also use it to calculate runtime.
Get declared classes
Get declared functions
Get defined constants
Get snippet from a file
Get backtrace php scripts
Convert error message in a link, see system/configs/debug.php
Details
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
renderDefined()
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
functions()
Get declared functions
static array
constants()
Get defined constants
static array|null
source(string $file, int $line)
Get snippet from a file
static array|null
caller(int $level = 0, int $limit = 100)
Get backtrace php scripts
static string
searcherror(string $message)
Convert error message in a link, see system/configs/debug.php