Home > Backend Development > PHP Tutorial > PHP:调试的时候没有显示任何错误信息

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

WBOY
Release: 2016-06-06 20:45:46
Original
1048 people have browsed it

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

<code><?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();
</code>
Copy after login
Copy after login

回复内容:

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

<code><?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();
</code>
Copy after login
Copy after login

确保php.ini
中的display_errors = On

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

<code>ini_set("display_errors","On");//开启错误显示
error_reporting(E_ALL);//显示所有错误
</code>
Copy after login

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

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template