How to Error enable in Magento?

It is very simple and very important for coder. just Edit your index.php file with below code.


error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);

And .htaccess

SetEnv MAGE_IS_DEVELOPER_MODE "true"