Support the ongoing development of Laravel.io →
posted 8 years ago
Architecture
Last updated 5 months ago.
0

This debugbar could help a bit with queries/timing: https://github.com/barryvdh/laravel-debugbar New relic is also free with limited functionality..

Last updated 5 months ago.
0

You could also look at Clockwork: https://github.com/itsgoingd/clockwork/, I've been using it for performance evaluation and it supports adding your own custom start and end events in the code.

Last updated 5 months ago.
0

Yes barry. Your Debugbar is awesome. Thanks for making such a great tool and making it free. Read about it after posting this question. Not yet checked https://github.com/itsgoingd/clockwork/ Will check.

PS: When i posted, i didnt expect anyone to reply. Great community. Keep up the good work. \m/\m/

Last updated 5 months ago.
0

barryvdh said:

This debugbar could help a bit with queries/timing: https://github.com/barryvdh/laravel-debugbar New relic is also free with limited functionality..

Hey barry, i installed the debugbar but i keep getting this error. Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/vendor/fon...;.

I read in the old forum that you need to publish the assets using "php artisan debugbar:publish". i have already done that. can you help?

Here is the complete error from chrome console Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/vendor/fon...;. (index):78 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/barryvdh/laravel-debugbar/larave...;. (index):83 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/vendor/hig...;. (index):79 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/openhandle...;. (index):82 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/widgets.cs...;. (index):81 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/debugbar.c...;. (index):80 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/widgets/sq...;. (index):84 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/widgets/ma...;. (index):85 Resource interpreted as Script but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/vendor/jqu...;. (index):86 Uncaught SyntaxError: Unexpected identifier jquery.min.js:1 Resource interpreted as Script but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/debugbar.j...;. (index):88 Resource interpreted as Script but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/widgets.js...;. (index):89 Resource interpreted as Script but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/vendor/hig...;. (index):87 Uncaught SyntaxError: Unexpected identifier highlight.pack.js:1 Uncaught SyntaxError: Unexpected identifier debugbar.js:1 Uncaught SyntaxError: Unexpected identifier widgets.js:1 Resource interpreted as Script but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/openhandle...;. (index):90 Uncaught SyntaxError: Unexpected identifier openhandler.js:1 Resource interpreted as Script but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/widgets/sq...;. (index):91 Uncaught SyntaxError: Unexpected identifier widget.js:1 Resource interpreted as Script but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/widgets/ma...;. (index):92 Uncaught SyntaxError: Unexpected identifier widget.js:1 Uncaught ReferenceError: PhpDebugBar is not defined (index):95

Last updated 5 months ago.
0

Do the files exist? Does publishing give an error or is the path wrong? Should be in the public/packages folder. Did you change the public folder name? If so, did you change the paths file?

Last updated 5 months ago.
0

barryvdh said:

Do the files exist? Does publishing give an error or is the path wrong? Should be in the public/packages folder. Did you change the public folder name? If so, did you change the paths file?

All packages are there in the public folder. Still getting this error. Help!! I just now noticed its trying to get localhost/lms/packages/maximebf/php-debugbar/openhandler.js and the file is accessible via localhost/lms/public/packages/maximebf/php-debugbar/openhandler.js Thats why the 404 error. I guess the "Uncaught ReferenceError: PhpDebugBar is not defined " is also due to the same problem. Can you tell me either 1) How to remove /public for all laravel public folder requests OR 2) How to configure debugbar to look in ../public not ../

Last updated 5 months ago.
0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

joy014 joy014 Joined 12 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.