Skip the setup. Our team will have you taking orders in 24 hours. Get started →
Extensions

Debugbar

Installation Getting started Usage Profiling Generating IDE Helper files #Installation You can install the extension via composer using the following co...

You can install the extension via composer using the following command:

composer require tastyigniter/ti-ext-debugbar -W

The DebugBar extension integrates the Laravel Debugbar into TastyIgniter, providing a powerful debugging tool for developers. It allows you to inspect and profile your application easily, offering insights into queries, routes, views, and more.

To enable the DebugBar, set DEBUGBAR_ENABLED to true in your .env file. Once enabled, the DebugBar will appear at the bottom of all admin pages. Please note, you must be logged in as an admin to view the DebugBar on the frontend.

For more information on how to use or configure the DebugBar, refer to the Laravel Debugbar documentation

For more information on how to use or configure the DebugBar, refer to the Laravel Debugbar documentation

This section covers how to use the DebugBar in your own extension if you need to debug your code or profile its performance.

You can measure the time of your code execution by using the Debugbar facade:

use Debugbar;

Debugbar::startMeasure('render','Time for rendering');

// Do something

Debugbar::stopMeasure('render');

To generate IDE helper files, which improve code completion and navigation in your IDE, run the following command:

php artisan ide-helper:generate

Did this answer your question?

Your feedback helps us improve our help articles.

Need more help?

Explore the help center, join the community, or get priority support from the TastyIgniter team.