This is what I need to traces all the lines when running php or Laravel framework in windows sub-system for linux (WSL).
Install xdebug
in the system then edit /etc/php/7.4/mods-available/xdebug.ini
with the following details
zend_extension=xdebug.so
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.remote_port = 9001
xdebug.scream=0
xdebug.cli_color=1
xdebug.show_local_vars=1
xdebug.remote_autostart=1
; this part here, above is used for line by line debug in vscode
xdebug.auto_trace=1
xdebug.trace_output_dir = /mnt/c/projects/www/phptraces
xdebug.trace_output_name=trace.%u
xdebug.collect_params=4
xdebug.trace_format = 1
This one here
xdebug.trace_output_dir = /mnt/c/projects/www/phptraces
is the path where to store logs
For laravel framework it generate very large file most likely 4GB in size. So I used
split -l 1000 trace.1576842503_368392.xt pieces/traces
to split it into smaller parts containing 1000 lines each and store it into pieces directory.
Then you can use editor find in files what your looking for