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

让CI显示PHP异常

WBOY
WBOYOriginal
2016-06-13 10:40:33680browse

让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