barryvdh/laravel-debugbar
Laravel Debugbar integrates PHP Debug Bar into Laravel, showing request, queries, views, routes, logs, exceptions, and performance details in a handy toolbar. Great for local debugging and profiling; configurable and easy to enable/disable per environment.
Debugbar::info(), debug(), measure()) for ad-hoc debugging, reducing boilerplate for quick iterations.{{ debug() }}), useful for frontend-heavy applications.composer require) and config tweaks (e.g., debugbar.enabled=true in .env). No database migrations or schema changes.DataCollector classes (e.g., for domain-specific metrics).debugbar.enabled=false).soft_limit/hard_limit for queries to cap resource usage.debugbar.storage.open persists request data locally, which could bloat storage or expose sensitive data in shared environments. Restrict to local/dev only.rcrowe/TwigBridge for Twig integration, adding a minor dependency.php artisan migrate) use debugbar for logging?slow_threshold) be dynamically adjusted?php-debugbar, but loses Laravel-specific collectors (e.g., Livewire, Auth).jobs after verifying queue performance).DEBUGBAR_COLLECT_JOBS=true).debugbar.enabled=false).debugbar()->enable()) for critical debugging sessions.cache collector may impact performance.collect_jobs is enabled).php artisan vendor:publish --tag=debugbar-config)..env (DEBUGBAR_ENABLED=true).soft_limit, hard_limit) before enabling explain.storage.open to local/dev.debugbar.enabled=false in production .env.debug(), query backtraces).hard_limit=200 for queries).debugbar.storage.open can bloat disk if left enabled. Use max_requests in config to limit history.debugbar()->disable()) in performance-sensitive paths.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Collectors left enabled in prod | Increased latency, data leakage | CI checks, .env validation, IP restrictions |
Storage bloat from open handler |
Disk I/O, slow requests | Disable in non-local envs, set max_requests |
| Query backtrace slows down app | High memory usage | Exclude vendor paths, reduce backtrace depth |
| Twig integration conflicts | Template rendering errors | Test with ` |
How can I help you explore Laravel packages today?