您的位置:首页 > 数据库 > SQL

[ecshop 调试 ]ecshop中的 debug_mode 是在哪里定义的 查看sql日志 输出错误 显示debug

2015-11-07 20:31 771 查看

ecshop中的 debug_mode 是在哪里定义的??怎么用?谢谢

2011-11-29 21:45匿名| 浏览 3362 次
编程语言

分享到:


2011-12-08 16:49

提问者采纳

在data/config.php 中加入
define('DEBUG_MODE', '0');
就可以了.默认是没有的.需要自己手动添加的.
DEBUG_MODE 有4种模式:
0 disabled debug
1 output error message
2 disabled caching
4 showing debug page
8 logging SQL query


例如  

/*
DEBUG_MODE 有4种模式:
0 disabled debug
1 output error message
2 disabled caching
4 showing debug page
8 logging SQL query
*/

define('DEBUG_MODE', 8);

sql日志 在/data/目录下
/data/mysql_query_ceab627119d9907c71979d3f18692db5_2015_11_07.log
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: