Documentation

Table Of Contents

Previous topic

< Class Phalcon\Db\Result\Pdo

Next topic

Class Phalcon\Dispatcher >

This Page

Class Phalcon\Debug

Provides debug capabilities to Phalcon applications

Methods

public Phalcon\Debug setUri (string $uri)

Change the base URI for static resources

public Phalcon\Debug setShowBackTrace (boolean $showBackTrace)

Sets if files the exception’s backtrace must be showed

public Phalcon\Debug setShowFiles (boolean $showFiles)

Set if files part of the backtrace must be shown in the output

public Phalcon\Debug setShowFileFragment (boolean $showFileFragment)

Sets if files must be completely opened and showed in the output or just the fragment related to the exception

public Phalcon\Debug listen ([boolean $exceptions], [boolean $lowSeverity])

Listen for uncaught exceptions and unsilent notices or warnings

public Phalcon\Debug listenExceptions ()

Listen for uncaught exceptions

public Phalcon\Debug listenLowSeverity ()

Listen for unsilent notices or warnings

public Phalcon\Debug debugVar (mixed $var, [string $key])

Adds a variable to the debug output

public Phalcon\Debug clearVars ()

Clears are variables added previously

protected string _escapeString ()

Escapes a string with htmlentities

protected string _getArrayDump ()

Produces a recursive representation of an array

protected string _getVarDump ()

Produces an string representation of a variable

public string getMajorVersion ()

Returns the major framework’s version

public string getVersion ()

Generates a link to the current version documentation

public string getCssSources ()

Returns the css sources

public string getJsSources ()

Returns the javascript sources

protected showTraceItem ()

Shows a backtrace item

public boolean onUncaughtException (Exception $exception)

Handles uncaught exceptions