Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Debugbar

Laravel Debugbar Laravel Package

barryvdh/laravel-debugbar

Laravel Debugbar integrates PHP Debug Bar into Laravel, showing request timing, queries, routes, views, cache/events, and more. Easy install and configurable collectors with support for AJAX and profiling to help diagnose performance issues in development.

View on GitHub
Deep Wiki
Context7

barryvdh/laravel-debugbar integrates the popular PHP DebugBar into Laravel, giving you rich, in-browser insight into what happens during each request. It’s a lightweight developer tool that helps you diagnose slowdowns, unexpected queries, and framework behavior without littering your code with dumps.

Ideal for local development and staging, it surfaces key runtime metrics directly in a familiar toolbar so you can iterate faster and ship with confidence.

  • Shows request/response, routing, and controller action details
  • Tracks database queries with timing, bindings, and duplicates
  • Displays logs, exceptions, and stack traces in-context
  • Provides timeline/profiling for benchmarks and memory usage
  • Inspect views, config, and session data (Laravel-aware collectors)
Frequently asked questions about Laravel Debugbar
How do I install Laravel Debugbar in a Laravel 11 project?
Run `composer require barryvdh/laravel-debugbar` to install the package. Then publish the config with `php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"` and add the middleware to your `app/Http/Kernel.php` under the `web` middleware group. No additional setup is needed for basic functionality.
Can I use Laravel Debugbar in production without performance issues?
Debugbar is designed to be disabled in production by default. Use `debugbar()->disable()` in your middleware or set `APP_DEBUG=false` in your `.env`. For minimal overhead, disable non-essential collectors (e.g., Queries, Events) via the config file. Always test performance impact in staging first.
Which Laravel versions does Debugbar officially support?
Debugbar is officially tested and supported for Laravel 8 through 11. While it may work with older versions (e.g., Laravel 7), backward compatibility isn’t guaranteed. Check the [GitHub releases](https://github.com/fruitcake/laravel-debugbar/releases) for version-specific notes before upgrading or downgrading.
How do I disable specific collectors like Queries or Events?
Edit the `config/debugbar.php` file and set `enabled` to `false` for the collectors you want to disable. For example, set `'collectors' => ['queries' => false, 'events' => true]` to disable query logging while keeping event tracking. This reduces overhead and clutter in the debug toolbar.
Does Debugbar work with Livewire or Alpine.js components?
Yes, Debugbar includes native support for Livewire via the `livewire` collector, which is enabled by default. For Alpine.js, you’ll need to manually enable the `ajax` collector in the config if you’re tracking HTTP requests. No additional setup is required for Livewire out of the box.
How can I store Debugbar data in Redis instead of files?
Configure Redis storage by setting `'storage' => 'redis'` in `config/debugbar.php` and ensuring the `predis/predis` package is installed (`composer require predis/predis`). Redis requires a running Redis server and proper Laravel cache configuration. File storage remains the default for simplicity.
Will Debugbar slow down my Laravel application significantly?
Debugbar adds minimal overhead when only essential collectors (e.g., Queries, Memory) are enabled. However, enabling all collectors (e.g., Files, Config, Logs) can increase TTFB by 10–30% in high-traffic environments. Always disable collectors in production and monitor performance with tools like Blackfire or Laravel Telescope.
How do I integrate Debugbar with Laravel queues or Horizon?
Enable queue job collection by setting `debugbar.collect_jobs = true` in your config. Restart your queue workers (e.g., `php artisan queue:restart` or Supervisor) to ensure they capture job events. Horizon users can monitor jobs directly in the Debugbar toolbar without additional configuration.
Are there any alternatives to Laravel Debugbar for debugging?
Yes, alternatives include Laravel Telescope (built for Laravel, focuses on logs/queries), Blackfire (profiler with deep performance insights), and Xdebug (low-level debugger). Debugbar is unique for its in-browser toolbar and modular collectors, making it ideal for quick, visual debugging without external tools.
How do I fix 'Debugbar not showing in Docker or Homestead environments'?
Ensure your Docker container or Homestead VM has proper file permissions for storage (default: `storage/debugbar`). If using remote storage (e.g., Redis), verify the connection is accessible from the container. For IDE path mapping issues, configure remote path aliases in your IDE settings to point to the container’s storage directory.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport