{"id":2204,"date":"2017-04-02T13:13:14","date_gmt":"2017-04-02T13:13:14","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=2204"},"modified":"2019-07-22T04:15:48","modified_gmt":"2019-07-22T04:15:48","slug":"installing-msp-devtools-magento-devtools-by-magespecialist","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2017\/04\/02\/installing-msp-devtools-magento-devtools-by-magespecialist\/","title":{"rendered":"Installing MSP DevTools (Magento DevTools by MageSpecialist)"},"content":{"rendered":"<p>ref: <a href=\"http:\/\/www.magespecialist.it\/blog\/2016\/08\/11\/magento-devtools-available-helping-magento-developers-all-around-the-world\/\">http:\/\/www.magespecialist.it\/blog\/2016\/08\/11\/magento-devtools-available-helping-magento-developers-all-around-the-world\/<\/a><br \/>\n<a href=\"https:\/\/github.com\/magespecialist\/mage-chrome-toolbar#installing-on-magento-2\">https:\/\/github.com\/magespecialist\/mage-chrome-toolbar#installing-on-magento-2<\/a><\/p>\n<ol>\n<li>Install the chrome extension here: <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/magespecialist-devtools-f\/odbnbnenehdodpnebgldhhmicbnlmapj?authuser=3\">https:\/\/chrome.google.com\/webstore\/detail\/magespecialist-devtools-f\/odbnbnenehdodpnebgldhhmicbnlmapj?authuser=3<\/a><\/li>\n<li>From your CLI run: <span style=\"color: #ffff00;\">composer require msp\/devtools<\/span>\u00a0 &#8211;&gt; IT TAKE A LONG TIME BUT I DON&#8217;T KNOW WHY\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/works\/magentoce215$ sudo su -s \/bin\/bash www-data\r\nwww-data@teddy-K43SJ:\/home\/teddy\/Documents\/works\/magentoce215$ composer require msp\/devtools\r\nCannot create cache directory \/var\/www\/.cache\/composer\/repo\/https---repo.magento.com\/, or directory is not writable. Proceeding without cache\r\nCannot create cache directory \/var\/www\/.cache\/composer\/repo\/https---packagist.org\/, or directory is not writable. Proceeding without cache\r\nCannot create cache directory \/var\/www\/.cache\/composer\/files\/, or directory is not writable. Proceeding without cache\r\n\r\nAuthentication required (repo.magento.com):\r\nUsername: 491a468ba9afd310d3eac792647361be\r\nPassword:\r\nDo you want to store credentials for repo.magento.com in \/var\/www\/.config\/composer\/auth.json ? [Yn] n\r\nUsing version ^0.2.4 for msp\/devtools\r\n.\/composer.json has been updated\r\nCannot create cache directory \/var\/www\/.cache\/composer\/repo\/https---repo.magento.com\/, or directory is not writable. Proceeding without cache\r\nCannot create cache directory \/var\/www\/.cache\/composer\/repo\/https---packagist.org\/, or directory is not writable. Proceeding without cache\r\nCannot create cache directory \/var\/www\/.cache\/composer\/files\/, or directory is not writable. Proceeding without cache\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\nPackage operations: 2 installs, 0 updates, 0 removals\r\n- Installing msp\/common (0.1.3): Downloading (100%)\r\n- Installing msp\/devtools (0.2.4): Downloading (100%)\r\nPackage fabpot\/php-cs-fixer is abandoned, you should avoid using it. Use friendsofphp\/php-cs-fixer instead.\r\nWriting lock file\r\nGenerating autoload files<\/pre>\n<\/li>\n<li>Flush your cache.\n<pre class=\"lang:default decode:true\">www-data@teddy-K43SJ:\/home\/teddy\/Documents\/works\/magentoce215$ php bin\/magento cache:clean\r\nwww-data@teddy-K43SJ:\/home\/teddy\/Documents\/works\/magentoce215$ php bin\/magento cache:flush<\/pre>\n<p>&nbsp;<\/li>\n<li>Turn OFF Full Page Cache (FPC) while you are using DevTools.<br \/>\nSystem -&gt; Cache Management -&gt; Check &#8216;Page Cache&#8217; -&gt; Dropdown select &#8216;Disable&#8217; -&gt; Click &#8216;Submit&#8217;<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/magento2_disable_fpc.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2208\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/magento2_disable_fpc-1024x412.png\" alt=\"\" width=\"840\" height=\"338\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/magento2_disable_fpc-1024x412.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/magento2_disable_fpc-300x121.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/magento2_disable_fpc-768x309.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/magento2_disable_fpc-1200x483.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/magento2_disable_fpc.png 1318w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><br \/>\nOR YOU CAN DO IT MANUALLY BY MODIFYING \/app\/etc\/env.php IN &#8216;cache_types&#8217; SECTION THEN SET &#8216;full_page&#8217; TO 0:<\/p>\n<pre class=\"lang:default decode:true \">...\r\n'cache_types' =&gt;\r\n    array (\r\n        ...\r\n        'full_page' =&gt; 0,\r\n        ...\r\n    ),\r\n...<\/pre>\n<p>&nbsp;<\/li>\n<li>Enable MSP_Common and MSP_DevTools modules:\n<pre class=\"lang:default decode:true\">www-data@teddy-K43SJ:\/home\/teddy\/Documents\/works\/magentoce215$ php bin\/magento module:enable MSP_Common MSP_DevTools\r\n\r\nThe following modules have been enabled:\r\n- MSP_Common\r\n- MSP_DevTools\r\n\r\nTo make sure that the enabled modules are properly registered, run 'setup:upgrade'.\r\nCache cleared successfully.\r\nGenerated classes cleared successfully. Please run the 'setup:di:compile' command to generate classes.\r\nInfo: Some modules might require static view files to be cleared. To do this, run 'module:enable' with the --clear-static-content option to clear them.<\/pre>\n<\/li>\n<li>Upgrade database data &amp; schema:\n<pre class=\"lang:default decode:true\">www-data@teddy-K43SJ:\/home\/teddy\/Documents\/works\/magentoce215$ php bin\/magento setup:upgrade\r\nCache cleared successfully\r\nFile system cleanup:\r\n...\r\nUpdating modules:\r\nSchema creation\/updates:\r\n...\r\nModule 'MSP_Common':\r\nModule 'MSP_DevTools':\r\n...\r\nSchema post-updates:\r\n...\r\nModule 'MSP_Common':\r\nModule 'MSP_DevTools':\r\n...\r\nData install\/update:\r\n...\r\nModule 'MSP_Common':\r\nModule 'MSP_DevTools':\r\n...\r\nData post-updates:\r\n...\r\nModule 'MSP_Common':\r\nModule 'MSP_DevTools':\r\n...\r\nPlease re-run Magento compile command<\/pre>\n<p>&nbsp;<\/li>\n<li>Open Magento backend and go to Stores &gt; Settings &gt; Configuration &gt; MageSpecialist &gt; DevTools -&gt; Enable &#8216;Yes&#8217;, IP list: 0.0.0.0\/0<br \/>\n<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/magento_devtools_enable.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2209\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/magento_devtools_enable-1024x423.png\" alt=\"\" width=\"840\" height=\"347\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/magento_devtools_enable-1024x423.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/magento_devtools_enable-300x124.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/magento_devtools_enable-768x317.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/magento_devtools_enable-1200x495.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/magento_devtools_enable.png 1328w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/li>\n<li>\u00a0Enabling 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:\n<pre class=\"lang:default decode:true\">$_SERVER['MAGE_PROFILER'] = [ 'drivers' =&gt; [['output' =&gt; 'MSP\\DevTools\\Profiler\\Driver\\Standard\\Output\\DevTools']] ];<\/pre>\n<p>&nbsp;<\/p>\n<p>Editing .htaccess file<\/p>\n<p>Add the following line to your .htaccess file (at the bottom is okay):<\/p>\n<pre class=\"lang:default decode:true\">SetEnv MAGE_PROFILER MSP\\DevTools\\Profiler\\Driver\\Standard\\Output\\DevTools<\/pre>\n<p>&nbsp;<\/p>\n<p>THEN YOU CAN SEE THE profilers in the chrome developer tools -&gt; magento tab -&gt; profiler tab<\/li>\n<li>Enabling SQL Queries profiler:<br \/>\nYOU CAN DO IT MANUALLY BY MODIFYING \/app\/etc\/env.php IN &#8216;db&#8217; -&gt; &#8216;connection&#8217; -&gt; &#8216;default&#8217; SECTION THEN ADD &#8216;profiler&#8217; TO 1:<\/p>\n<pre class=\"lang:default decode:true\">...\r\n    'db' =&gt;\r\n    array (\r\n         'table_prefix' =&gt; '',\r\n         'connection' =&gt;\r\n         array (\r\n              'default' =&gt;\r\n              array (\r\n                  ...\r\n                  'active' =&gt; '1',\r\n                  'profiler' =&gt; '1',\r\n              ),\r\n         ),\r\n     ),\r\n...<\/pre>\n<p>&nbsp;<\/p>\n<p>THEN YOU CAN SEE THE SQL queries in the chrome developer tools -&gt; magento tab -&gt; queries tab.<br \/>\nHere are some screens how this tool in action:<br \/>\nGeneral tab<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_general.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2212\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_general.jpg\" alt=\"\" width=\"733\" height=\"685\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_general.jpg 733w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_general-300x280.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a>Design tab<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_design.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2213\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_design.jpg\" alt=\"\" width=\"630\" height=\"524\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_design.jpg 630w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_design-300x250.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a>Observers tab<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_observer.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2214\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_observer.jpg\" alt=\"\" width=\"639\" height=\"528\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_observer.jpg 639w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_observer-300x248.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a>Blocks tab<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_blocks.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2215\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_blocks.jpg\" alt=\"\" width=\"639\" height=\"652\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_blocks.jpg 639w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_blocks-294x300.jpg 294w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a>UI tab<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_ui.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2216\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_ui.jpg\" alt=\"\" width=\"639\" height=\"501\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_ui.jpg 639w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_ui-300x235.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a>Profiler tab<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_profiler.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2217\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_profiler.jpg\" alt=\"\" width=\"631\" height=\"569\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_profiler.jpg 631w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_profiler-300x271.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a>Plugins tab<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_plugins.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2218\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_plugins.jpg\" alt=\"\" width=\"640\" height=\"621\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_plugins.jpg 640w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_plugins-300x291.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a>Queries tab<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_queries.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2219\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_queries.jpg\" alt=\"\" width=\"637\" height=\"526\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_queries.jpg 637w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_queries-300x248.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a>Inspect element and the magento element<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_inspect_element.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2220\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_inspect_element.jpg\" alt=\"\" width=\"850\" height=\"715\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_inspect_element.jpg 850w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_inspect_element-300x252.jpg 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/04\/msp2_inspect_element-768x646.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>ref: http:\/\/www.magespecialist.it\/blog\/2016\/08\/11\/magento-devtools-available-helping-magento-developers-all-around-the-world\/ https:\/\/github.com\/magespecialist\/mage-chrome-toolbar#installing-on-magento-2 Install the chrome extension here: https:\/\/chrome.google.com\/webstore\/detail\/magespecialist-devtools-f\/odbnbnenehdodpnebgldhhmicbnlmapj?authuser=3 From your CLI run: composer require msp\/devtools\u00a0 &#8211;&gt; IT TAKE A LONG TIME BUT I DON&#8217;T KNOW WHY teddy@teddy-K43SJ:~\/Documents\/works\/magentoce215$ sudo su -s \/bin\/bash www-data www-data@teddy-K43SJ:\/home\/teddy\/Documents\/works\/magentoce215$ composer require msp\/devtools Cannot create cache directory \/var\/www\/.cache\/composer\/repo\/https&#8212;repo.magento.com\/, or directory is not writable. Proceeding without cache Cannot create cache directory \/var\/www\/.cache\/composer\/repo\/https&#8212;packagist.org\/, &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2017\/04\/02\/installing-msp-devtools-magento-devtools-by-magespecialist\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Installing MSP DevTools (Magento DevTools by MageSpecialist)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71,98,13],"tags":[],"class_list":["post-2204","post","type-post","status-publish","format-standard","hentry","category-magento","category-magento-tutorial","category-tutorial"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/2204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=2204"}],"version-history":[{"count":7,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/2204\/revisions"}],"predecessor-version":[{"id":2206,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/2204\/revisions\/2206"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=2204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=2204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=2204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}