Support the ongoing development of Laravel.io →
posted 10 years ago
Architecture
Last updated 2 years 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 2 years 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 2 years 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 2 years 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/font-awesome/css/font-awesome.min.css".

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/font-awesome/css/font-awesome.min.css". (index):78 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/barryvdh/laravel-debugbar/laravel-debugbar.css". (index):83 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/vendor/highlightjs/styles/github.css". (index):79 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/openhandler.css". (index):82 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/widgets.css". (index):81 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/debugbar.css". (index):80 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/widgets/sqlqueries/widget.css". (index):84 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/widgets/mails/widget.css". (index):85 Resource interpreted as Script but transferred with MIME type text/html: "http://localhost/lms/packages/maximebf/php-debugbar/vendor/jquery/dist/jquery.min.js". (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.js". (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/highlightjs/highlight.pack.js". (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/openhandler.js". (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/sqlqueries/widget.js". (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/mails/widget.js". (index):92 Uncaught SyntaxError: Unexpected identifier widget.js:1 Uncaught ReferenceError: PhpDebugBar is not defined (index):95

Last updated 2 years 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 2 years 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 2 years ago.
0

Sign in to participate in this thread!

Eventy

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?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.