Configuring Magento for Development / Debug Mode

March 10, 2012  |  4 Comments  |  by Raj (MagePsycho)  |  Apache, Latest, Magento

Configuring Magento for Development / Debug Mode:

1. Disable Cache
System > Cache Management > Select All [check-boxes] > Actions = Disable > Submit

2. Re-Index All
System > Index Management > Select All [check-boxes] > Actions = Reindex Data > Submit

3. Disable Compilation
System > Tools > Compilation > Disable

Note: By default compilation mode is disabled. So just check if the Compiler Status is Enabled or not.

4. Turn on Error Reporting
a> Open index.php and un-comment the following line

#ini_set('display_errors', 1);

b> Open .htaccess and add the following line at the end

SetEnv MAGE_IS_DEVELOPER_MODE "true"

5. Turn on Logging
System > Configuration > Advanced > Developer > Log Settings > Enabled => Yes

6. Configuring Mangeto Error Page
rename errors/local.xml.sample to errors/local.xml

7. Install ‘Easy Template Path Hints’
Install Easy Template Path Hints for turning on/off the template path hints for frontend and backend easily & securely.

That’s all. Let me know for any missing points.
Happy Debugging!

Posted in Apache, Latest, Magento and tagged , , , , , . Bookmark the permalink.

About Raj (MagePsycho)

Raj, the guy behind MagePsycho is a Zend PHP5 Certified Engineer, Magento Certified Developer, Magento Moderator / Freelancer with specialization in web applications (CMS, E-Commerce, ERP etc.). Catch him on: Twitter: @magepsycho Skype: magentopycho
  • http://belvg.com Pavel Novitsky

    Hello, nice checklist.
    You can also enable sql query log. Go to lib/Varien/Db/Adapter/Pdo/Mysql.php and set properties
    $_debug = true; and $_logAllQueries = true;. Queries will be stored in var/debug/pdo_mysql.log by default.

  • Francisco Prado Rodrigues

    Thanks. :)

  • Carmenpeter

    It is amazing. I have seen this article; it is giving good knowledge about it. If anyone wants to learn about it, they can gain knowledge through this article.

  • sukritinfotech

    WordPress Development Company

    nice sites Glad to be helpful