Disable HTML stack traces by Xdebug

前端 未结 3 790
不思量自难忘°
不思量自难忘° 2020-12-31 04:14

The administrator has installed Xdebug 2.1.1 in our shared PHP 5.3.0 server in order to use its debugger. Now, I can hardly read the stack traces of uncatched exceptions bec

相关标签:
3条回答
  • 2020-12-31 04:25

    Add following code in the initialization Script:

     if (function_exists('xdebug_disable')) {
               xdebug_disable();
             }
    
    0 讨论(0)
  • 2020-12-31 04:31

    You need to make sure you have html_errors=0 in PHP as well. Also, orange isn't horrible ;-)

    0 讨论(0)
  • 2020-12-31 04:43

    Check for xdebug_disable()Docs:

    Disables stack traces

    Disable showing stack traces on error conditions.

    See as well xdebug.default_enableDocs.

    0 讨论(0)
提交回复
热议问题