The DebugBar integrates easily in any projects and can display profiling data from any part of your application. It comes built-in with data collectors for standard PHP features and popular projects.
Questions tagged [phpdebugbar]
35 questions
1
vote
3 answers
Using Laravel Debugbar, how can I disable exception logging?
I'm using the Laravel Debugbar Package to display debug information. I'm noticing that the debug bar is logging errors to the log whenever an exception occurs. I would rather this doesn't happen, since I am running my own custom exception handler…

zeckdude
- 15,877
- 43
- 139
- 187
1
vote
2 answers
Laravel 4 and debugbar - show pdo queries?
I have installed: https://github.com/barryvdh/laravel-debugbar using composer.
I followed install procedures, and now done.
But how do I see my PDO mysql queries? I am building a RESTful api, without any HTML/view rendering.
Don't know if it is for…

FooBar
- 5,752
- 10
- 44
- 93
1
vote
1 answer
How to add HTML to PHP Debug Bar indicator tooltip?
This question pertains to PHP Debug Bar.
I'm adding a custom DataCollector to PHP Debug Bar. I want to add some nicely formatted information to it when I mouse over it. For example,
public function getWidgets() {
$name = $this->getName();
…

mpen
- 272,448
- 266
- 850
- 1,236
0
votes
0 answers
How to enable laravel debugbar dynamically?
Is there any way to disable the debugbar by default and enable it dynamically in the middleware?
When in AppServiceProvider boot I add Debugbar::disable(); and then in the middleware in the condition I add Debugbar::enable(); it does not…
0
votes
1 answer
When I do an ajax request i get back the responseText and debugbar info (Laravel)
When I do an ajax request i get back the responseText and debugbar info (Laravel)
I get something like that:
ok

Pablo González
- 1
- 1
0
votes
1 answer
How do I create code snippets for vscode for "print_r" that outputs the contents of the variable passed to it, along with the filename ,line number
How do I create code snippets for vscode for "print_r" that outputs the contents of the variable passed to it, along with the filename and line number of the file where the function is called and Also want proper format print in output screen.
$data…

Garima Rajput
- 71
- 1
- 7
0
votes
2 answers
laravel 8 get error 503 without exception message
My project worked properly while today get 503 without exception message.
This fix after run php artisan cache:clear command for one time but after refresh page then get 503 again.
I tried these:
cleared bootstrap/cache files
delete vendor and…
0
votes
0 answers
How can integrate PHP debugbar with MySQLI?
The documentation on how to do this with PDO is pretty straightforward. However, not much can be found on how can I setup Php debugbar collector to log queries for a MYSQLI database connection ? Is this possible, and if so, then how can I achieve it…

Sirkow
- 63
- 9
0
votes
0 answers
laravel debugbar package - problem with views
PHP Version: 7.4.29
Laravel Version = 5.7.29
I have installed laravel debugbar and it is displaying fine. Whenever I click on any part of the APP i am using (thus the version as this is an older app and it hasn't been updated) such as:…
0
votes
0 answers
Enable Laravel Debugbar in AppServiceProvider behavior
I found this Laravel Debugbar I would like to use in my app.
But I want to enable it based on a condition. I tried adding my code in both register() and boot() method in the AppServiceProvider, where I put all other similar checks, but both don't…

Annity
- 96
- 1
- 10
0
votes
0 answers
Xdebug doesn't stop at any break point in Visual Studio Code
I am using a windows virtual machine on a mac laptop and the PHP code is on linux machine but I access it from the windows VM
I have tried everything to use xdebud in my visual studio code but I didn't reach anything.
The PHP version is 7.3
This is…

Noha Yasser
- 15
- 4
0
votes
0 answers
laravel php artisan config:clear causes jquery and PhpDebugBar to become undefined
When I run php artisan config:clear my application can no longer log in and all pages have the follow errors.
127.0.0.1/:1 Refused to apply style from 'https://127.0.0.1:8443/_debugbar/assets/stylesheets?v=1608300097&theme=auto' because its MIME…

chris colpitts
- 11
- 2
0
votes
0 answers
impossible to show laravel debugbar with laravel 6
I have installed laravel/debugbar in my laravel 6 project, however, I don't see it displayed on my page. I have tried several things :
set APP_DEBUG=true in my .env file
run php artisan config:clear, php artisan route:clear, php artisan…

Jonas
- 175
- 1
- 2
- 11
0
votes
1 answer
How can I reload a View after sorting product data in a Laravel controller?
In a site I'm working on, I'm having some problems rendering a view. On the websites products-list page, there's a little 'Sort by...' element. When the user selects one of the options, it should reload the products page with the sorted products,…

Donderstal
- 25
- 6
0
votes
1 answer
Laravel log both the query *AND* the query result
Before anyone gets mad, this is a duplicate of this question:
Laravel 5.4: logging SQL queries along with results
But that question was never answered properly, maybe the OP didn't quite phrase the question clearly enough initially.
So, I have…

Michael Ryan Soileau
- 1,763
- 17
- 28