Phalcon provides a debug component that allows the developer to easily find errors produced in an application created with the framework

The following example explains how it works:

To add Phalcon\Debug, we are going to open up our bootstrap file, index.php file located at public, and add a couple of lines of code at the beginning of our code, remove the try-catch construction:

    error_reporting(E_ALL);

    $debug = new \Phalcon\Debug();
    $debug->listen();
    [...]
    do something