magespecialist / mage-chrome-toolbar

Magento Chrome Toolbar for MSP_DevTools
333 stars 42 forks source link

Magento Chrome Toolbar for MSP DevTools

Magento Chrome Toolbar is a chrome extension to be used with MSP_DevTools for Magento 1 or Magento 2.

This extension allows you to quickly access the information you need to debug your Magento performances, to build your new theme or to modify an existing one.

How can I install it?

Just install from Chrome WebStore. Now you have the Chrome extension, next step is to install and configure the Magento extension.

Installing on Magento 1:

This package is also available on packagist for Magento 1 composer installation: composer require msp/devtools-m1

Source code available on GitHub: https://github.com/magespecialist/m1-MSP_DevTools

Installing on Magento 2:

Source code available on GitHub: https://github.com/magespecialist/m2-MSP_DevTools

Enabling profiler feature on Magento 2:

If you wish to enable the profiler feature, execute:

bin/magento dev:profiler:enable 'MSP\DevTools\Profiler\Driver\Standard\Output\DevTools'

Enabling SQL query feature on Magento 2:

Edit app/etc/env.php file adding the following key: $config[db][connection][default][profiler] = 1

Example:

...
  ),
  'db' => 
  array (
    'table_prefix' => '',
    'connection' => 
    array (
      'default' => 
      array (
        'host' => 'localhost',
        ...
        'profiler' => '1',
      ),
    ),
  ),
  'resource' => 
  array (
...

How does it work?

You can access both Global Page Information and Item Information through Chrome Inspector.

Inspector integration

Global Page Information

From the main panel you can see information from:

Theme, Controller and Global information:

Blocks / Containers information:

uiComponents information:

Profiler information:

Data Models information:

Collections information:

Item Information

Magento Chrome Toolbar is integrated with Chrome Inspector.

By selecting an item in you page you can see:

PhpStorm Integration

Magento Chrome Toolbar can be integrated with PhpStorm to directly open the template file you wish to edit.

You need to install Remote Call Plugin in PhpStorm, then enable the feature from Magento Admin.