Skip to content

Instantly share code, notes, and snippets.

@bdlangton
Last active May 16, 2017 19:38
Show Gist options
  • Save bdlangton/dae6615d2b187b7a043b87e086328c1f to your computer and use it in GitHub Desktop.
Save bdlangton/dae6615d2b187b7a043b87e086328c1f to your computer and use it in GitHub Desktop.
Development settings for Drupal 7
// My custom settings.
// Show all errors.
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
// Show Views SQL query and performance stats in preview. Requires: views_ui.
$conf['views_ui_show_sql_query'] = 1;
$conf['views_ui_show_performance_statistics'] = 1;
// Show database queries on page load and how long they took. Requires: devel.
$conf['devel_query_display'] = 1;
$conf['devel_query_sort'] = '1';
// Krumo skin. Requires: devel.
$conf['devel_krumo_skin'] = 'white';
// Devel show memory usage. Requires: devel.
$conf['devel_memory'] = 1;
// Devel error handler using krumo backtrace. Requires: devel.
// 0 = None, 1 = Standard Drupal, 4 = Krumo in message area.
$conf['devel_error_handlers'][4] = '4';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment