{"id":15137,"date":"2018-02-14T17:41:00","date_gmt":"2018-02-14T14:41:00","guid":{"rendered":"https:\/\/belvg.com\/blog\/?p=15137"},"modified":"2026-05-04T20:27:40","modified_gmt":"2026-05-04T18:27:40","slug":"developer-mode-and-debugging-in-magento-2","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html","title":{"rendered":"Developer Mode and Debugging in Magento 2"},"content":{"rendered":"\n<p>Every developer knows how it&rsquo;s important to be good at debugging in Magento 2. In the article we consider the debug technique and suggest the steps you should follow to achieve the result. Hope you&rsquo;ll find it useful.<!--more--><\/p>\n<p>In Magento 2 there are some application modes:<\/p>\n<h3>1. Default mode<\/h3>\n<p>The mode is enabled when no other mode is specified. In this mode:<\/p>\n<ul>\n<li>Static files are generated dynamically in response to a request.<\/li>\n<li>Static files are published to the pub\/static directory for generating faster. If they are missing, it is generated from the basic templates (placed in vendor or app).<\/li>\n<li>Errors are not displayed to users and stored in log files.<\/li>\n<\/ul>\n<h3>2. Developer mode<\/h3>\n<p>The mode is used for developing. It is characterized by following:<\/p>\n<ul>\n<li>Static files are generated and published to pub\/static directory (as it is in the default mode). With that, they are always generated from basic templates.<\/li>\n<li>Errors are displayed in the browser and can be seen by users.<\/li>\n<li>Errors that get in <strong>var\/<\/strong>reports are more detailed.<\/li>\n<\/ul>\n<h3>3. Production mode<\/h3>\n<p>The mode is considered to be the most optimized and suitable for server production. In this mode, all data is loaded from cache (if there is). For generating you need to use the deployment mechanism (in bin\/Magento). In this mode:<\/p>\n<ul>\n<li>Static files are stored in the cache only.<\/li>\n<li>Errors are not displayed and stored in the log files.<\/li>\n<\/ul>\n<p>In order to change the production mode for developer mode, you need to get <strong>bin\/magento<\/strong> started with settings <strong>deploy:mode:set developer<\/strong>.<\/p>\n<p>Then you need to delete the content of the following directories (except for .<em>htaccess<\/em> files and the file of <strong>pub\/static\/deployed_version.txt<\/strong> version):<\/p>\n<pre class=\"lang:sh decode:true \">var\/cache\r\nvar\/di\r\nvar\/generation\r\nvar\/view_preprocessed\r\npub\/static<\/pre>\n<h2><strong>Debugging<\/strong><\/h2>\n<p>For debugging in Magento 2 the following methods can be applied:<\/p>\n<h3>1. XDebug<\/h3>\n<p>In my opinion, the method is the best, but it can&rsquo;t always be used. In order to apply it, you need to configure the environment (<strong>PHP\/apache<\/strong>) and install some modules to connect it. On the Internet, you can find a lot of manuals how to install XDebug (for example, <a href=\"http:\/\/wiki.netbeans.org\/HowToConfigureXDebug\" target=\"_blank\" rel=\"noopener\">http:\/\/wiki.netbeans.org\/HowToConfigureXDebug<\/a> or <a href=\"http:\/\/devdocs.magento.com\/guides\/v2.0\/cloud\/howtos\/debug.html\" target=\"_blank\" rel=\"noopener\">http:\/\/devdocs.magento.com\/guides\/v2.0\/cloud\/howtos\/debug.html<\/a> which is from official Magento 2 documentation). The main advantage of the method is breakpoints installation and the ability to review and change variables at any time.<\/p>\n<h3>2. Developer mode<\/h3>\n<p>Here the developer mode is used in Magento 2. The mode allows displaying errors directly on the screen. It is convenient when debugging failed modules (blank page or 500 error). In order to make the mode enabled, you need to add the following to the directory using console:<\/p>\n<pre class=\"lang:sh decode:true \">php bin\/magento deploy:mode:set developer<\/pre>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/magento-audit\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><div class=\"module_content_part\"><h3 class=\"title\">Magento Audit<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG Magento Audit<\/p><a href=\"https:\/\/belvg.com\/magento-audit\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the page<\/span><\/a><\/div><\/div><\/div>\n<h3>3. Logs<\/h3>\n<p>In the method, log files are used. It directs when the program algorithm fails and what exactly goes wrong. The method is hidden from the user and doesn&rsquo;t require displaying the data on the screen. Moreover, in Magento 2 there&rsquo;s the <strong>\\Psr\\Log\\LoggerInterface<\/strong> class that allows logging events and output variables to Magento log files. It has the following public methods:<\/p>\n<pre class=\"lang:php decode:true\">emergency($message, array $context = array())\r\nalert($message, array $context = array())\r\ncritical($message, array $context = array())\r\nerror($message, array $context = array())\r\nwarning($message, array $context = array())\r\nnotice($message, array $context = array())\r\ninfo($message, array $context = array())\r\ndebug($message, array $context = array())\r\nlog($level, $message, array $context = array())<\/pre>\n<p>The log method is more general.<\/p>\n<p><strong>$level<\/strong> &ndash; here the level of logging is set (all the constants are in the <strong>\\Psr\\Log\\LogLevel<\/strong> class).<br>\n<strong>$message<\/strong> &ndash; the output message.<br>\n<strong>$context<\/strong> &ndash; the variables array for output which is converted to JSON.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/magento-development\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/08\/magento-development-services.png\" width=\"481\" height=\"480\" alt=\"magento development services\" class=\"module_image\" title=\"Developer Mode and Debugging in Magento 2\"><div class=\"module_content_part\"><h3 class=\"title\">Magento Development Services<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG Magento development<\/p><a href=\"https:\/\/belvg.com\/magento-development\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Click to visit the page<\/span><\/a><\/div><\/div><\/div>\n<p>All logs will be output to<strong> var\/log\/system.log<\/strong>, except for the debug method, as it stores logs to <strong>var\/log\/debug.log<\/strong> file.<\/p>\n<p>For example,<\/p>\n<pre class=\"lang:php decode:true\">namespace Belvg\\someModule\\Block;\r\nclass someClass extends \\Magento\\Framework\\View\\Element\\Template {\r\nprotected $log;\r\npublic function __construct(\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\\Magento\\Backend\\Block\\Template\\Context $context,\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\\Psr\\Log\\LoggerInterface $logger,\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array $data = []\r\n&nbsp;&nbsp;&nbsp;)\r\n&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;log = $logger;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::__construct($context, $data);\r\n&nbsp;&nbsp;&nbsp;}\r\npublic function test() {\r\n$this-&gt;log-&gt;debug(&ldquo;testlog&rdquo;);\r\n}\r\n}<\/pre>\n<h3>4. Display Magento errors<\/h3>\n<p>Magento 2 automatically saves error messages to var\/reports and doesn&rsquo;t display on the screen. In order to get it displayed, you need to rename the <strong>local.xml.sample<\/strong> file placed in&nbsp;<strong>pub\/errors<\/strong> into <strong>local.xml<\/strong>. The file contains error display settings. Here you can configure emailing error notifications.<\/p>\n<p>The content of local.xml.sample:<\/p>\n<pre class=\"lang:xhtml decode:true \">&lt;?xml version=\"1.0\"?&gt;\r\n&lt;!--\r\n\/**\r\n * Copyright &copy; 2013-2017 Magento, Inc. All rights reserved.\r\n * See COPYING.txt for license details.\r\n *\/\r\n--&gt;\r\n&lt;config&gt;\r\n    &lt;skin&gt;default&lt;\/skin&gt;\r\n    &lt;report&gt;\r\n        &lt;!--\r\n            \"action\" can be set to \"print\" to show exception on screen and \"email\"\r\n            to send exception on specified email\r\n        --&gt;\r\n        &lt;action&gt;print&lt;\/action&gt;\r\n        &lt;!--\r\n            in \"subject\" you can set subject of email\r\n        --&gt;\r\n        &lt;subject&gt;Store Debug Information&lt;\/subject&gt;\r\n        &lt;!--\r\n            \"email_address\" admin email address\r\n        --&gt;\r\n        &lt;email_address&gt;&lt;\/email_address&gt;\r\n        &lt;!--\r\n            \"trash\" is handle about trace info\r\n            value \"leave\" is for store on disk\r\n            value \"delete\" is for cleaning\r\n        --&gt;\r\n        &lt;trash&gt;leave&lt;\/trash&gt;\r\n    &lt;\/report&gt;\r\n&lt;\/config&gt;\r\n<\/pre>\n<h3>5. Template path hints<\/h3>\n<p>The method outputs the names of all page blocks and classes.&nbsp; In order to enable path hints, you need to go to <strong>Stores-&gt;Configuration-&gt;Advanced-&gt;Developer<\/strong>, then on the tab <strong>&ldquo;Debug&rdquo;<\/strong> choose <strong>&ldquo;Enabled Template Path Hints for Storefront&rdquo;<\/strong> and <strong>&ldquo;Add Block Names to Hints&rdquo;<\/strong>.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Developer-Mode-and-Debugging-in-Magento-2_2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy alignnone size-full wp-image-15144\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Developer-Mode-and-Debugging-in-Magento-2_2.png\" alt=\"Developer Mode and Debugging in Magento 2_2\" width=\"1895\" height=\"883\" title=\"Developer Mode and Debugging in Magento 2\"><\/a><\/p>\n<p>Looking for an expert&nbsp;<a href=\"https:\/\/belvg.com\/magento-development\" target=\"_blank\" rel=\"noopener\">Magento 2 development team<\/a>? Turn to BelVG!<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/magento-webdesign\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/01\/magento-webdesign-1.png\" width=\"100\" height=\"100\" alt=\"magento webdesign\" class=\"module_image\" title=\"Developer Mode and Debugging in Magento 2\"><div class=\"module_content_part\"><h3 class=\"title\">Magento Webdesign<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG Magento Webdesign<\/p><a href=\"https:\/\/belvg.com\/magento-webdesign\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the page<\/span><\/a><\/div><\/div><\/div>\n\n","protected":false},"excerpt":{"rendered":"Every developer knows how it\u2019s important to be good at debugging in Magento 2","protected":false},"author":82,"featured_media":15138,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[35,14,389],"tags":[],"class_list":["post-15137","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-certification","category-magento","category-magento2-development","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Find out how to debug Magento 2 using XDebug, Developer Mode &amp; Logs. Keep the online store bug-free with our Magento blog.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Andrey Litvin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/developer-mode-and-debugging-in-magento-2.html#article\",\"name\":\"Developer Mode and Debugging in Magento 2 | BelVG Blog\",\"headline\":\"Developer Mode and Debugging in Magento 2\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/Developer-Mode-and-Debugging-in-Magento-2.jpg\",\"width\":770,\"height\":433},\"datePublished\":\"2018-02-14T17:41:00+02:00\",\"dateModified\":\"2026-05-04T20:27:40+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":3,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/developer-mode-and-debugging-in-magento-2.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/developer-mode-and-debugging-in-magento-2.html#webpage\"},\"articleSection\":\"Certification, Magento, Magento 2 Development, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/developer-mode-and-debugging-in-magento-2.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"name\":\"Magento\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"position\":2,\"name\":\"Magento\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/developer-mode-and-debugging-in-magento-2.html#listItem\",\"name\":\"Developer Mode and Debugging in Magento 2\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/developer-mode-and-debugging-in-magento-2.html#listItem\",\"position\":3,\"name\":\"Developer Mode and Debugging in Magento 2\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"name\":\"Magento\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin\",\"name\":\"Andrey Litvin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/developer-mode-and-debugging-in-magento-2.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e1a6e3c80cb940fddb65016d94b015cd951b4a8a9cd7227565131f28ea95c7a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Andrey Litvin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/developer-mode-and-debugging-in-magento-2.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/developer-mode-and-debugging-in-magento-2.html\",\"name\":\"Developer Mode and Debugging in Magento 2 | BelVG Blog\",\"description\":\"Find out how to debug Magento 2 using XDebug, Developer Mode & Logs. Keep the online store bug-free with our Magento blog.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/developer-mode-and-debugging-in-magento-2.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/Developer-Mode-and-Debugging-in-Magento-2.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/developer-mode-and-debugging-in-magento-2.html\\\/#mainImage\",\"width\":770,\"height\":433},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/developer-mode-and-debugging-in-magento-2.html#mainImage\"},\"datePublished\":\"2018-02-14T17:41:00+02:00\",\"dateModified\":\"2026-05-04T20:27:40+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Developer Mode and Debugging in Magento 2 | BelVG Blog","description":"Find out how to debug Magento 2 using XDebug, Developer Mode & Logs. Keep the online store bug-free with our Magento blog.","canonical_url":"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html#article","name":"Developer Mode and Debugging in Magento 2 | BelVG Blog","headline":"Developer Mode and Debugging in Magento 2","author":{"@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Developer-Mode-and-Debugging-in-Magento-2.jpg","width":770,"height":433},"datePublished":"2018-02-14T17:41:00+02:00","dateModified":"2026-05-04T20:27:40+02:00","inLanguage":"en-US","commentCount":3,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html#webpage"},"articleSection":"Certification, Magento, Magento 2 Development, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","name":"Magento"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","position":2,"name":"Magento","item":"https:\/\/belvg.com\/blog\/category\/magento","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html#listItem","name":"Developer Mode and Debugging in Magento 2"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html#listItem","position":3,"name":"Developer Mode and Debugging in Magento 2","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","name":"Magento"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author","url":"https:\/\/belvg.com\/blog\/author\/andrey-litvin","name":"Andrey Litvin","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/e1a6e3c80cb940fddb65016d94b015cd951b4a8a9cd7227565131f28ea95c7a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Andrey Litvin"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html#webpage","url":"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html","name":"Developer Mode and Debugging in Magento 2 | BelVG Blog","description":"Find out how to debug Magento 2 using XDebug, Developer Mode & Logs. Keep the online store bug-free with our Magento blog.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Developer-Mode-and-Debugging-in-Magento-2.jpg","@id":"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html\/#mainImage","width":770,"height":433},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html#mainImage"},"datePublished":"2018-02-14T17:41:00+02:00","dateModified":"2026-05-04T20:27:40+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"15137","title":"Developer Mode and Debugging in Magento 2 | #site_title","description":"Find out how to debug Magento 2 using XDebug, Developer Mode &amp; Logs. Keep the online store bug-free with our Magento blog.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:37:11","updated":"2026-11-03 18:37:11"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/magento\" title=\"Magento\">Magento<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tDeveloper Mode and Debugging in Magento 2\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Magento","link":"https:\/\/belvg.com\/blog\/category\/magento"},{"label":"Developer Mode and Debugging in Magento 2","link":"https:\/\/belvg.com\/blog\/developer-mode-and-debugging-in-magento-2.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/15137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/82"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=15137"}],"version-history":[{"count":5,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/15137\/revisions"}],"predecessor-version":[{"id":30503,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/15137\/revisions\/30503"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/15138"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=15137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=15137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=15137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}