L
L
Lopus2016-11-28 19:06:14
PHP
Lopus, 2016-11-28 19:06:14

trace files not generated by xdebug?

when xdebug.profiler_enable is enabled, cachegrind.out* files are created,
but if you view this file through phpstorm, then it will only contain calls to system functions, but not user ones.
Here are two questions:
1. I understand that user-defined functions should be in trace* files, enabled by the xdebug.trace_enable_trigger and xdebug.trace_enable_trigger_value parameters?
2. Below is the config that I registered in php.ini, but trace files are not created. something is missing? follow link localhost?XDEBUG_TRACE=1
xdebug.profiler_enable=0
xdebug.auto_trace=0
xdebug.trace_enable_trigger=1
xdebug.trace_enable_trigger_value="XDEBUG_TRACE"
xdebug.trace_format=1
xdebug.collect_params=3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lopus, 2016-11-28
@Lopus

Got it. it is necessary to disable xdebug.auto_trace
then the debugger will write any request to the trace.
if enabled, you must manually call the xdebug_start_trace() and xdebug_stop_trace() functions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question