1. Go to this page and download the library: Download glowieframework/debugger 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/ */
glowieframework / debugger example snippets
'plugins' => [
// ... other plugins here
\Glowie\Plugins\Debugger\Debugger::class,
],
<body>
<!-- your page content here -->
\Glowie\Plugins\Debugger\Debugger::render();
use Glowie\Plugins\Debugger\Debugger;
Debugger::enable();
Debugger::disable();
use Glowie\Plugins\Debugger\Debugger;
Debugger::log('Hello world!'); // Prints an info message
// or
Debugger::info('Hello world!');
Debugger::error('Something went wrong...'); // Prints an error message
Debugger::warning('Remember to check the docs.'); // Prints a warning message
Debugger::dump($myVar); // Dumps a variable to the console
use Glowie\Plugins\Debugger\Debugger;
try {
throw new Exception('Whoops!');
} catch (Exception $e) {
Debugger::exception($e);
}
use Glowie\Plugins\Debugger\Debugger;
Debugger::startTimer('test', 'My timer description');
// your long operation
Debugger::stopTimer('test');
// or
Debugger::measure('Test', function(){
// your long operation
});
use Glowie\Plugins\Debugger\Debugger;
Debugger::clear(); // Clears the console
Debugger::clearExceptions(); // Clears the exceptions
Debugger::clearTimers(); // Clears the timers
Debugger::clearQueries(); // Clears the queries
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.