首页 > PHP:调试的时候没有显示任何错误信息

PHP:调试的时候没有显示任何错误信息

从网上下载了一套php程序,调试的时候没有输出任何错误信息(页面空白),导致无法排错。
环境:IIS 7.5
这是他的入口文件

<?php
include './core/config/common.conf.php';
include './core/config/routes.conf.php';
include './core/config/app.conf.php';
include $config['BASE_PATH'].'deployment/deploy.php';
//include $config['BASE_PATH'] . 'Doo.php';
//include $config['BASE_PATH'] . 'app/DooConfig.php';
Doo::conf()->set($config);
Doo::db()->setDb($dbconfig, $config['APP_MODE']);
Doo::app()->route = $route;
Doo::app()->run();

确保php.ini
中的display_errors = On

或者在入口文件的顶部加上:

ini_set("display_errors","On");//开启错误显示
error_reporting(E_ALL);//显示所有错误

当然确保在之后的文件中没有将display_errors设置为Off

【热门文章】
【热门文章】