PHP & Xdebug: DO NOT write a stack to the error log?

Dear PHP man, is there any way to make Xdebug show the entire stack on the screen, but DO NOT write it to the error log? I would only like the actual error line in the log file itself, but I would like to see the stack on the screen.

+3
source share
1 answer

xdebug uses an error handler mechanism to display its stack trace. If you check the xdebug sources and look in xdebug.c, you will see this on line 801:

      if (XG(default_enable) && zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_SOAPACT     ION", 16, (void**)&dummy) == FAILURE) {
          zend_error_cb = new_error_cb;
          zend_throw_exception_hook = xdebug_throw_exception_hook;
      }

xdebug_error_cb() ( ) xdebug_throw_exception_hook() xdebug_stack.c , , - , , ... - php set_error_handler(). !

+3

Source: https://habr.com/ru/post/1764738/


All Articles