Showing errors during the development

01/02/2016

In Drupal 7, we can modify the configuration of the PHP to maximize the level of error notifications.  For this, it is necessary to edit the Drupal file settings.php and add to the end the lines of code that follow.  Additionally, navigate to Administration→ Configuration→ Development → logging and errors and select "All messages". (This sets $conf['error_level'] = 2; .)

<?php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
//Note:  Do not include the opening and closing PHP tags when you copy this code
?>