Last active
February 7, 2016 01:10
-
-
Save gh640/8e8f448c5d73129136a1 to your computer and use it in GitHub Desktop.
Drupal 7 でホワイトスクリーンではなく画面にエラーを表示するための設定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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