Documentation
How to use
- Install add-on
- Go to [Dashboard > System & Settings > Permissions & Access
Task Permissions] page. Attach "Show Debug Bar" permission to users who want to see debug bar.
Recommendation
This is a debug tool. You should not enable it on your production website. It may slow down your site or block some editing interface. I recommend you to enable this tool only for your account, only when you want to debug something.
Tabs
Messages
You can add messages to this tab using compatible usage with PSR-3 logger.
app('debugbar/messages')->info('hello world');
app('debugbar/messages')->info($object);
Timeline
You can check a timeline within the runtime. You can also add log the execution time of a particular operation.
app('debugbar/time')->startMeasure('longop', 'My long operation');
sleep(2);
app('debugbar/time')->stopMeasure('longop');
Request
You can check how Concrete retrieve request data in this tab.
Session
You can check values stored in the current session.
Database
You can check all sql queries on current request in this tab.
Logs
You can check application logs (same as dashboard/reports/logs but you can quick access!).
Environment
Get some information about the server/application environment.
How to add your custom collector
$app->make('director')->addListener('on_before_dispatch', function
() use ($app) {
$app->make('debugbar')->addCollector(new CustomCollector());
});
Please check the official documentation if you want to implement a custom collectors.