Debug - page7/pt GitHub Wiki

Debug

Quick

#####1. Edit Template config (/conf/template.php), Add display callback.

    'callback' => array(
        'display' => function($debug)
        {
            if ($debug)
                \pt\framework\debug::show();
        },
    ),

#####2. Print some message

use pt\framework\debug as debug;
debug::log("This is debug");

#####3. Print trace in class or function.

debug::trace();

Config

Not have anything.