ectouch第九讲 之ectouch 开始调试模式方法


ectouch 开始调试模式方法

原文: http://my.oschina.net/u/1036767/blog/407067
页面报错对于发现编程过程中的问题很重要,所以在开发之前要先搞定它,免得出了问题不知道在哪下手,瞎耽误功夫(本人深有感触)。

不说废话了,进入正题

ectouch 开始调试模式方法:

修改 mobileincludeConvention.php 关闭调试模式

1
'DEBUG' => false, // 是否开启调试模式,true开启,false关闭
修改mobileincludeCommon.php 搜索函数funciton E

?

/**
* 抛出异常处理
* @param string $msg 异常消息
* @param integer $code 异常代码 默认为0
* @return void
*/
function E($msg, $code = 0) {

//throw new Exception($msg, $code);

exit();
}
将 throw new Exception 前面的注释去掉

现在就可以在浏览器中看到报错信息了

原文地址:https://www.cnblogs.com/c-961900940/p/4740304.html