How to turn on error messages in magento 2

To turn on error messages in Magento 2 Add following code in index.php file –
error_reporting(E_ALL);
ini_set('display_errors', 1);

Leave a Reply