Xdebug track / trace php echo, print calls

Is there any way to see echo or print calls in xdebug trace output. I am looking for a global configuration (or a way to do this) for all the scripts that I run on my server.

Example:

<?php echo "xdebug show me"; ?> 

I want the trace output to display an echo call. By default, it is not displayed. I tried to disable the output buffer (which may not be relevant), but it does not work. Any suggestions?

+6
source share
1 answer

I'm not 100% sure, but I think profiling a script can give you information. XDebug has the ability to profile your application. This will record every call (including runtime). You should be able to extract information from this dump file.

See http://www.xdebug.org/docs/profiler for more details.

0
source

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


All Articles