PHP code example of flightphp / tracy-extensions
1. Go to this page and download the library: Download flightphp/tracy-extensions library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
flightphp / tracy-extensions example snippets
use Tracy\Debugger;
use flight\debug\tracy\TracyExtensionLoader;
// bootstrap code
ugger::DEVELOPMENT)
// if you use database connections in your app, there is a
// t::register('db', PdoQueryCapture::class, ['sqlite:test.db', 'user', 'pass']);
// now whenever you make a query it will capture the time, query, and parameters
// This connects the dots
if(Debugger::$showBar === true) {
new TracyExtensionLoader(Flight::app());
}
// more code
Flight::start();