Discuz! X 开启 debug 调试功能 [复制链接]

moqu8 2020-3-28

1565 0
1.将 function_debug.php 放置
  • source/function

  • 2.打开
  • config/config_global.php

  • 在最后加入
    <span style="font-size: 14px;" ";="" color:="" rgb(102,="" 102,="" 102);"="">$_config[</span><font color="#a31515" style="font-size: 14px;" ";"="">'debug'</font><span style="font-size: 14px;" ";="" color:="" rgb(102,="" 102,="" 102);"="">] = </span><font color="#a31515" style="font-size: 14px;" ";"="">'debug'</font><span style="font-size: 14px;" ";="" color:="" rgb(102,="" 102,="" 102);"="">;</span>

    或者
    <span style="font-size: 14px; font-family: Tahoma, " ";="" color:="" rgb(102,="" 102,="" 102);"="">$_config[</span><font color="#a31515" style="font-size: 14px; font-family: Tahoma, " ";"="">'debug'</font><span style="font-size: 14px; font-family: Tahoma, " ";="" color:="" rgb(102,="" 102,="" 102);"="">] =1;</span>

    在这说明一下,
    当 $_config['debug'] 的值为debug或者其他自定义值的时候,开启debug功能需要在地址栏后加 ?debug=debug;
    当 $_config['debug'] 的值为1的时候,全站(包括后台)默认开启debug功能;

    image.png

    点击下载 function_debug.zip(大小:5.59K)


    最新回复 (0)
    返回
    支持中心
    邮箱:winkill2012@qqcom
    新站优化中!部分功能尚未完善,敬请谅解!
    支持中心