Magento Chrome Toolbar for MSP_DevTools

Overview

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:

  • From your CLI run: composer require msp/devtools
  • Flush your cache.
  • Turn OFF Full Page Cache while you are using DevTools.
  • Upgrade database data & schema: php bin/magento setup:upgrade
  • Open Magento backend and go to Stores > Settings > Configuration > MageSpecialist > DevTools.
  • Enable devtools and set IP restrictions.
  • Optionally download PhpStorm Remote Call Plugin if you wish to integrate PhpStorm.

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 you need to set the MAGE_PROFILER server variable to MSP\DevTools\Profiler\Driver\Standard\Output\DevTools. You can do it in several ways:

Editing index.php:

Add the following line at the very beginning on index.php and pub/index.php file:

$_SERVER['MAGE_PROFILER'] = [ 'drivers' => [['output' => 'MSP\DevTools\Profiler\Driver\Standard\Output\DevTools']] ];

Editing .htaccess file

Add the following line to your .haccess file:

SetEnv MAGE_PROFILER MSP\DevTools\Profiler\Driver\Standard\Output\DevTools

Known Magento bug: In Magento 2.1.3 (and probably previous version) you may have problems with profiler and ajax calls due to a core bug. If you are getting this kind of problem you should use the "index.php" modification way.

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 / Router
  • Request parameters
  • Layout and Layout updates
  • Observers
  • Data Models inspector
  • Collections inspector
  • Blocks, Containers, uiComponents
  • Profiler

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:

  • Block information
  • Used template
  • Server elapsed time
  • Block nesting
  • Template file
  • Cache information
  • uiComponent information
  • Container information

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.

Comments
  • Please upgrade you Magento MSP_DevTools plugin.

    Please upgrade you Magento MSP_DevTools plugin.

    This is the notice I get after Installing the extension in Chrome, the plugin in magento 2.1.7 and then enable it.

    I followed the guide and only just installed both a couple of hours ago.

    opened by mkor 8
  • Enable public wiki

    Enable public wiki

    Hi guys, can you enable public wiki? (or I am unable to see?) It shoul be beautiful to have 2 pages with Magento 1 features and Magento 2 features. For example: profiler is only for magento

    I can help you to write it. :)

    Thank you!

    opened by giuseppemorelli 8
  • Unsafe Chrome Web Store App / down from Store

    Unsafe Chrome Web Store App / down from Store

    image Translates to: This extension has been disabled because it was deemed unsafe by the Chrome Web Store.

    The store link returns 404:

    • Readme: https://chrome.google.com/webstore/detail/magespecialist-devtools-f/odbnbnenehdodpnebgldhhmicbnlmapj?authuser=3
    • Browser: https://chrome.google.com/webstore/detail/odbnbnenehdodpnebgldhhmicbnlmapj

    What's wrong here?

    opened by Morgy93 7
  • Error in installation instructions

    Error in installation instructions

    Firs off: great tool!

    There is a tiny flaw in the installation instructions for Magento 2.

    Line 27 should be removed. If you execute php bin/magento module:enable MSP_Common MSP_DevTools before php bin/magento setup:upgrade, you will get an error.

    [Zend_Json_Exception]
    Decoding failed: Syntax error
    

    You need to run php bin/magento setup:upgrade first, before being able to run php bin/magento module:enable MSP_Common MSP_DevTools of php bin/magento module:disable MSP_Common MSP_DevTools

    opened by joostvanveen 6
  • Widget Template File

    Widget Template File

    When I'm trying to open a custom widget file over the chrome dev tools, it always points me to the class: /vendor/magento/module-cms/Block/Widget/Block.php and the template: /vendor/magento/module-cms/view/frontend/templates/widget/static_block/default.phtml

    while it should be a custom widget class and template file. It's basically an extension of the product_link widget.

    Not sure if this is just beyond limits of this integration?

    opened by davidverholen 6
  • Error installing Chrome Extension

    Error installing Chrome Extension

    I'm getting an Error when I try to add the extension to Chrome: Package is invalid. Details: 'Could not load icon 'images/icon_off.png' for browser action.'.

    (Immediately after Downloading)

    I'm running Chrome Version 59.0.3071.115 on Ubuntu 17.04.

    opened by davidverholen 5
  • Magento 2.2.2 - Not Working

    Magento 2.2.2 - Not Working

    Magento 2.2.2 PHP 7.1 Report log:

    {"0":"Invalid operation nesting","1":"#0 /home/site/public_html/vendor/msp/devtools/Plugin/View/LayoutPlugin.php(115): MSP\DevTools\Model\AbstractOpsRegistry->stop('root', Array)\n#1 /home/site/public_html/vendor/magento/framework/Interception/Interceptor.php(135): MSP\DevTools\Plugin\View\LayoutPlugin->aroundRenderElement(Object(Magento\Framework\View\Layout\Interceptor), Object(Closure), 'root')\n#2 /home/site/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}('root')\n#3 /home/site/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(195): Magento\Framework\View\Layout\Interceptor->___callPlugins('renderElement', Array, NULL)\n#4 /home/site/public_html/vendor/magento/framework/View/Layout.php(954): Magento\Framework\View\Layout\Interceptor->renderElement('root')\n#5 /home/site/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Layout->getOutput()\n#6 /home/site/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Layout\Interceptor->___callParent('getOutput', Array)\n#7 /home/site/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}()\n#8 /home/site/public_html/generated/code/Magento/Framework/View/Layout/Interceptor.php(494): Magento\Framework\View\Layout\Interceptor->___callPlugins('getOutput', Array, Array)\n#9 /home/site/public_html/vendor/magento/framework/View/Result/Page.php(257): Magento\Framework\View\Layout\Interceptor->getOutput()\n#10 /home/site/public_html/vendor/magento/framework/View/Result/Layout.php(170): Magento\Framework\View\Result\Page->render(Object(Magento\Framework\App\Response\Http\Interceptor))\n#11 /home/site/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))\n#12 /home/site/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', Array)\n#13 /home/site/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Response\Http\Interceptor))\n#14 /home/site/public_html/generated/code/Magento/Framework/View/Result/Page/Interceptor.php(130): Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', Array, Array)\n#15 /home/site/public_html/vendor/magento/framework/App/Http.php(139): Magento\Framework\View\Result\Page\Interceptor->renderResult(Object(Magento\Framework\App\Response\Http\Interceptor))\n#16 /home/site/public_html/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch()\n#17 /home/site/public_html/vendor/magento/framework/App/Bootstrap.php(256): Magento\Framework\App\Http\Interceptor->launch()\n#18 /home/site/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))\n#19 {main}","url":"/","script_name":"/index.php"}

    opened by mageuser 4
  • Installation does not work

    Installation does not work

    Hi there,

    I just tried to install the extension and the Chrome Browser Extension. I followed the README but nothing happens. The Browser Extension doesn't seem to work.

    Are there any debug information, that I can provide you?

    Greetings David

    opened by DavidLambauer 4
  • After installation no option found in side STORE>CONFIG as per instruction.

    After installation no option found in side STORE>CONFIG as per instruction.

    As per instruction for MAGENTO 2 I was installed it, but there is no option found in Magento Backed > STORE> CONFIG>.

    • Magento 2.1
    • Window 10
    • Installation using git's bash.exe Like below command php composer.phar require msp/devtools
    • msp/devtools(v - ^0.1.6) installed
    • composer.json is updated.
    opened by dkrvl 4
  • Using with vagrant box

    Using with vagrant box

    Hi,

    Works with the local installation, but if Magento running on virtual machine extension does not work. Just showing standard error: MSP DevTools information not available. Please check:

    This is a Magento website You correctly installed MSP_DevTools You enabled MSP_DevTools You are within the allowed address range Full installation and configuration guide:

    https://github.com/magespecialist/mage-chrome-toolbar How to install the Magento module:

    This extension needs MSP_DevTools to be installed and configured in your Magento website. Magento 1:

    Download and copy in your Magento root path the MSP_DevTools module. Source code is available on GitHub: https://github.com/magespecialist/m1-MSP_DevTools Magento 2:

    You can install using composer: composer require msp/devtools Source code is available on GitHub: https://github.com/magespecialist/m2-MSP_DevTools

    At admin settings instead of localhost, I have put IP of the vagrant box.

    Please let me know if you need more details. Thanks.

    opened by tgamanov 3
  • FPC seems enabled

    FPC seems enabled

    Getting the Full Page Cache seems enabled issue, I have all caches disabled. I read the other issues and they seemed to pertain to VMs, and this machine is not a VM but a server with it's own IP.

    I'm sure that I have the correct IP set in the Authorized IP List field, on a site and store view level.

    image

    opened by dzmcclur 3
  • Can't edit products in backend if this extension is enabled

    Can't edit products in backend if this extension is enabled

    If I try to edit a product while this extension is enabled, I get logged out and redirected to the login form.

    It happened to me after I added a new attribute to my attribute set. I opened the product, edited it and saved, but the value was saved in the wrong store view. I was in "All store view" but it saved under default. Then I refreshed and was redirected to the login site

    opened by Eddcapone 0
  • How to adjust the 'file_put_contents' for the extension

    How to adjust the 'file_put_contents' for the extension

    Olá Phoenix,

    How to adjust the 'file_put_contents' for the extension?

    the path to my vendor_path.php file is: public_html/app/etc/vendor_path.php and not app/etc/vendor_path.php

    Thank you for your help!

    opened by Bernardosec21 0
  • Profiler - No results and icon does not look colorful

    Profiler - No results and icon does not look colorful

    I followed the content https://github.com/magespecialist/mage-chrome-toolbar

    "Add the following line at the very beginning on index.php and pub/index.php" image image

    "Editing .htaccess file" image

    All other functions are correct, I'm having problems only with the profiler tab image

    opened by guilhermetb 3
  • Notice: Undefined index: id in /var/www/html/magento2/vendor/magento/module-config/Model/Config/Structure/Element/Iterator.php on line 59

    Notice: Undefined index: id in /var/www/html/magento2/vendor/magento/module-config/Model/Config/Structure/Element/Iterator.php on line 59

    Magento ver. 2.1.11

    I got above error when i click on store->configuration in admin , if i disable the extension i am able to open.

    :4:{i:0;s:137:"Notice: Undefined index: id in /var/www/html/magento2/vendor/magento/module-config/Model/Config/Structure/Element/Iterator.php on line 59";i:1;s:4834:"#0 /var/www/html/magento2/vendor/magento/module-config/Model/Config/Structure/Element/Iterator.php(59): Magento\Framework\App\ErrorHandler->handler(8, 'Undefined index...', '/var/www/html/m...', 59, Array) #1 /var/www/html/magento2/vendor/magento/module-config/Model/Config/Structure.php(92): Magento\Config\Model\Config\Structure\Element\Iterator->setElements(Array, 'default') #2 /var/www/html/magento2/vendor/magento/module-config/Model/Config/Structure.php(135): Magento\Config\Model\Config\Structure->getTabs() #3 /var/www/html/magento2/vendor/magento/module-config/Controller/Adminhtml/System/AbstractConfig.php(57): Magento\Config\Model\Config\Structure->getFirstSection() #4 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Config\Controller\Adminhtml\System\AbstractConfig->dispatch(Object(Magento\Framework\App\Request\Http)) #5 /var/www/html/magento2/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Config\Controller\Adminhtml\System\Config\Index\Interceptor->___callParent('dispatch', Array) #6 /var/www/html/magento2/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Config\\...', 'dispatch', Object(Magento\Config\Controller\Adminhtml\System\Config\Index\Interceptor), Array, 'adminAuthentica...') #7 /var/www/html/magento2/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #8 /var/www/html/magento2/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Config\Controller\Adminhtml\System\Config\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #9 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Config\\...', 'dispatch', Object(Magento\Config\Controller\Adminhtml\System\Config\Index\Interceptor), Array, 'adminMassaction...') #10 /var/www/html/magento2/vendor/magento/module-backend/App/Action/Plugin/MassactionKey.php(33): Magento\Config\Controller\Adminhtml\System\Config\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #11 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(142): Magento\Backend\App\Action\Plugin\MassactionKey->aroundDispatch(Object(Magento\Config\Controller\Adminhtml\System\Config\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #12 /var/www/html/magento2/var/generation/Magento/Config/Controller/Adminhtml/System/Config/Index/Interceptor.php(26): Magento\Config\Controller\Adminhtml\System\Config\Index\Interceptor->___callPlugins('dispatch', Array, Array) #13 /var/www/html/magento2/vendor/magento/framework/App/FrontController.php(55): Magento\Config\Controller\Adminhtml\System\Config\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #14 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http)) #15 /var/www/html/magento2/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array) #16 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install') #17 /var/www/html/magento2/vendor/magento/framework/Module/Plugin/DbStatusValidator.php(69): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #18 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(142): Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #19 /var/www/html/magento2/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array) #20 /var/www/html/magento2/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #21 /var/www/html/magento2/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch() #22 /var/www/html/magento2/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #23 {main}";s:3:"url";s:111:"/magento2/admin/admin/system_config/index/key/6f39b850e8e06738be5a2023562319994cb8ef2bb8d4031469b721e398106c82/";s:11:"script_name";s:19:"/magento2/index.php";}

    opened by insaurabh 2
Releases(3.3.3)
Owner
MageSpecialist
MageSpecialist
Developer Toolbar for Magento2

Developer Toolbar for Magento2 About Hope this debug toolbar can speed up Magento2 development module. Any feedback and idea to improve this toolbar w

Vincent Pietri 423 Dec 28, 2022
BroRelo - Browser Auto Refresh / Reload for Firefox, Chrome & Opera

BroRelo - Browser Auto Refresh / Reload for Firefox, Chrome & Opera Ubuntu 21.10 | Apache/2.4.48 | PHP 8.0.18 This package can reload windows regardle

eypsilon 3 Jul 27, 2022
A tool that allows to quickly export data from Magento 1 and Magento 2 store and import it back into Magento 2

Simple Import / Export tool A tool that allows to quickly export data from Magento 1 and Magento 2 store and import it back into Magento 2. Table data

EcomDev B.V. 51 Dec 5, 2022
This Magento 2 extension integrates EasyTranslate into Magento 2.

EasyTranslate Magento 2 Connector This Magento 2 extension integrates EasyTranslate into Magento 2. Mind that you need to have an account with EasyTra

Easytranslate ApS 0 Oct 7, 2022
Magento-Functions - A Resource of Magento Functions

Magento-Functions A Resource of Magento Functions Table of Contents Category Product User Cart Checkout General Account [Working w/ URL's] (#urls) Cat

Bryan Littlefield 28 Apr 19, 2021
Magento - Magento Community Editions

Magento Community Edition /// THIS REPOSITORY IS DEPREACTED /// 1.9.4.1 will be the last version update. Please switch over to OpenMage! Either to the

FireGento e. V. 107 Oct 17, 2022
Magento-Vagrant-Puppet-Nginx - Installs magento and a nginx server

Magento-Vagrant-Puppet-Nginx Installs Magento MySQL PHP PHP-FPM Nginx n98-magerun Setup git submodule init git submodule update vagrant up Modify pupp

Christian Münch 61 Aug 10, 2022
Docker-magento - Docker image for Magento 1.6 to 1.9

Docker image for Magento 1.x This repo creates a Docker image for Magento 1.x. Please note The primary goal of this repo is to create Docker images fo

Fu Cheng 144 Nov 18, 2022
Magento-composer-installer - Composer installer for Magento modules

!!! support the maintainer of this project via Patreon: https://www.patreon.com/Flyingmana Magento Composer Installer The purpose of this project is t

null 213 Sep 24, 2022
Chef-magento - Installs and Configures a Magento project

Description Requirements Chef 0.10.0 or higher required (for Chef environment use). Platform Debian, Ubuntu CentOS, Red Hat, Fedora Your basebox must

Inviqa 3 Jun 30, 2020
Cookbook-magento - Collection of recipes to build app stack for the Magento deployments with Chef

Magento Cookbook Collection of recipes to build app stack for the Magento deployments with Chef Installation With Berkshelf echo "cookbook 'magento',

Yevhen Viktorov 37 Sep 26, 2020
Magento-bulk - Bulk Import/Export helper scripts and CLI utilities for Magento Commerce

Magento Bulk Bulk operations for Magento. Configuration Copy config.php.sample to config.php and edit it. Product Attribute Management List All Attrib

Bippo Indonesia 23 Dec 20, 2022
Phpcs-magento-rules - A set of PHPCS rules used by made.com when hacking Magento

Made.com PHPCS Magento Rules A set of PHPCS rules used by made.com when hacking Magento. Pre-Requisites PHPCS Installation Short Version Clone this re

Made.com Tech Team 26 Jun 3, 2020
This Magento extension provides a Real Full Page Caching for Magento powered by Varnish with support of Session-Based information caching (Cart, Customer Accounts, ...) via ESI includes

This Magento extension provides a Real Full Page Caching (FPC) for Magento powered by Varnish with support of Session-Based information caching (Cart, Customer Accounts, ...) via ESI includes

Hugues Alary 95 Feb 11, 2022
Automatically load the next page of products in Magento. Easy to install and configure, this module works 100% out of the box with vanilla Magento 1.9.x and earlier.

Automatically load the next page of products in Magento. Easy to install and configure, this module works 100% out of the box with vanilla Magento 1.9.x and earlier.

Strategery 123 Nov 20, 2021
Foundation 3 Framework for Magento 1.7. Foundation styles and libraries. Magento Responsive theme. Off-canvas Left-Right sidebar columns for mobile.

Magento Foundation 3 Framework Zurb Foundation 3 framework for Magento 1.7. Magento Foundation 3 Version 1.3.0. Demo page: http://magendation.internet

Nando Boronat 62 Apr 1, 2022
[ONLY Magento 2.0.x Compatible] Code samples for Magento developers

Synopsis This project is a collection of samples to demonstrate technologies introduced in Magento 2. You will find the most simple extension along wi

Magento 58 Dec 26, 2022