Laravel debugging tool LaravelDebugbar tutorial-PHP source code

Source: Internet
Author: User
LaravelDebugbar is a bug debugging plug-in. Let's take a look at this. The debugging example of LaravelDebugbar is as follows. Laravel Debugbar is a bug debugging plug-in. Let's take a look at this. The debugging example of Laravel Debugbar is as follows.

Script ec (2); script

Aravel Debugbar is a powerful tool for debugging Laravel and has a very beautiful Debug Bar.
How to Use Laravel Debugbar (github ):
1. Use compser to introduce package

Composer require barryvdh/laravel-debugbar

2. Add in providers of config/app. php

'Barryvdh \ Debugbar \ ServiceProvider ',

Check what information Laravel Debugbar collects:

QueryCollector are you still using DB: getQueryLog () to print SQL statements? QueryCollector collects the execution SQL and time of all databases



RouteCollector: displays the current route information
ViewCollector: The render template is displayed.



EventsCollector: all events
Memory usage of MemoryCollector;
TimeDataCollector request time and TimeLine;
ExceptionsCollector exception information
PHP file loaded by FilesCollector
ConfigCollector load configuration file value
All LogCollector log information

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.