bencarter78@hotmail.com's avatar

Debugging the Laravel-Debugbar

Hi all

I'm using the profiling tool laravel-debugbar on a project that I've just ported from L4 to L5. I've followed the installation instructions but it's not showing up. I've tried it with a fresh install and it works fine so something funky's going on with my app.

The problem is I don't really know where to start trying to debug the debugbar. Can anyone give me some ideas?

Thanks

0 likes
7 replies
MThomas's avatar

Some things to check:

  • Are you in debug mode? (config/app.php -> 'debug' => true?).
  • Did you register the ServiceProvder in config/app.php?
  • Did you publish the config file? php artisan vendor:publish
bencarter78@hotmail.com's avatar

@MThomas Yes I've done all that.

If I run artisan env then I get local. I've registered the Service Provider before any of my app specific providers. The config file is in my config directory. I've changed the permissions on the storage directory to 755.

But now I'm all out of ideas!

MThomas's avatar

Just to check (not implying you are stupid or something, but you did not mention it in your reply, so just to check), did you check the output of config('app.debug')?

bencarter78@hotmail.com's avatar

In my experience it is never a bad thing to check if someone (particularly me) is being stupid! ;)

The output of config('app.debug') is true.

I've also just noticed that there is an artisan command 'debugbar:clear' which when I run it says 'No Debugbar Storage found..'

MThomas's avatar

Sounds like me haha

Did you check your server logs? What kind of development setup do you use?

Might be that for some reason the debug bar can't access its resources.

bencarter78@hotmail.com's avatar

I'm not sure what was going on but I deleted everything, pulled it in again, ran the installs and it's all working again now.

I hate not knowing why though!

Please or to participate in this conversation.