Skip to content

Instantly share code, notes, and snippets.

@gh640
Last active February 7, 2016 01:10
Show Gist options
  • Select an option

  • Save gh640/8e8f448c5d73129136a1 to your computer and use it in GitHub Desktop.

Select an option

Save gh640/8e8f448c5d73129136a1 to your computer and use it in GitHub Desktop.
Drupal 7 でホワイトスクリーンではなく画面にエラーを表示するための設定
<?php
// なるべくホワイトスクリーンを避けてエラーを画面に表示するようにする
// - 開発環境のみで使用すること
// - 上 3 行は Drupal にかぎらず PHP 一般に有効
// @see https://www.drupal.org/node/1056468
error_reporting(-1);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
$conf['error_level'] = 2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment