2017 © Pedro Peláez
 

magento2-module magento2debugbar

PHPDebugbar for Magento2

image

yong/magento2debugbar

PHPDebugbar for Magento2

  • Monday, July 31, 2017
  • by Yongcheng
  • Repository
  • 2 Watchers
  • 2 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Magento2 Debugbar

Total Downloads Latest Stable Version Latest Unstable Version License, (*1)

This is a package to integrate PHP Debug Bar with Magento 2., (*2)

It lightly dynamic inject and collect debug info for Magento2 for development/production mode. You can configure enable it by specific IP address or specific cookie name and value matched, and you can extend it by your custom access control functions., (*3)

It bootstraps some Collectors to work with Magento2 and implements a couple custom DataCollectors, specific for Magento2. It is configured to display Redirects and (jQuery) Ajax Requests. (Shown in a dropdown) Read the documentation for more configuration options., (*4)

This package includes some custom collectors: - QueryCollector: Show queries, including binding + timing - ControllerCollector: Show information about the current/redirect Route Action. - TemplateCollector: Show the currently loaded template files. - ModelCollector: Show the loaded Models - ProfileCollector: Shows the Magento2 profiler details - RequestCollector: The default RequestCollector via PHPDebugbar - MemoryCollector: The default MemoryCollector via PHPDebugbar - MessagesCollector: The default MessagesCollector via PHPDebugbar, (*5)

And it also replace Magento default exception handler as Whoops Error Handler.Read filp/whoops for more details., (*6)

It also provides config interface for easy dynamic extend your functionality., (*7)

Installation

Require this package with composer:, (*8)

composer require yong/magento2debugbar dev-master

After updating composer, add 'phpdebugbar' configuration to app/etc/env.php, (*9)

  'phpdebugbar' =>
  array (
    'enabled' => 1,
    'enable_checker' =>
    array (
      'cookie' =>
      array(
        'name' => 'php_debugbar',
        'value' => 'cookievalue'
      ),
    ),
  )

and then run, (*10)

bin/magento module:enable Yong_Magento2DebugBar

Usage

Enable/Disable: go to file app/etc/env.php, set 'enabled' of array phpdebugbar as 0 for disable, 1 for enable(but still need cookie pair check), (*11)

enable_checker: When phpdebugbar is enabled, it will do further check, you need to set your cookie pair in app/etc/env.php, and also your browser has the same cookie pair. Then phpdebugbar will be launched. Otherwise it will not be launched and will collect nothing, it will not affect the performance. So you can deploy it on your production environment., (*12)

License

And of course:, (*13)

MIT: http://rem.mit-license.org, (*14)

Screenshot Screenshot Screenshot Screenshot, (*15)

The Versions

31/07 2017

dev-master

9999999-dev

PHPDebugbar for Magento2

  Sources   Download

MIT OSL-3.0 AFL-3.0

The Requires

 

by Yongcheng Chen