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:


    $debug = new \Phalcon\Debug();
    do something