$debug = new \PHPStaticDebug\Debug(); $debug->trace('Starting function foo'); foo(); $debug->trace('Ending function foo');
$debug = new \PHPStaticDebug\Debug(); $debug->startProfile('my code'); // some code here $debug->stopProfile('my code'); $debug->getProfile('my code');
$debug = new \PHPStaticDebug\Debug(); $debug->log('This is a debug message');
composer require php-static-debug/php-static-debug