Home >Backend Development >PHP Tutorial > 让CI显示PHP异常

让CI显示PHP异常

WBOY
WBOYOriginal
2016-06-13 13:19:48876browse

让CI显示PHP错误

刚开始学习CI,发现有时候程序出错并时没有报告错误,而是显示一个空白页面,调试起来比较头疼。

?

想让它显示错误的话,在入口文件index.php中添加这行代码就好了

?

ini_set('display_errors',1);
Statement:
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
Previous article: 30分钟立即学会 PHP语言 Next article: php错误处理