A
A
Anton Kuzmichev2012-11-22 17:31:40
PHP
Anton Kuzmichev, 2012-11-22 17:31:40

XDebug autotrace not working in PHP?

Hello!
Ubuntu 12.04 LTS, Apache 2.2.22, PHP 5.3.10, XDebug 2.1.0, all stock from native repositories.
I decided to attach autoprofiling and autotracing to the project under development, for which the following was added to the .htaccess of the project root folder:

php_value xdebug.profiler_enable 1
php_value xdebug.profiler_output_dir "./.profiler"
php_value xdebug.profiler_output_name "prof.%t.%R"

php_value xdebug.auto_trace 1
php_value xdebug.trace_format 2
php_value xdebug.collect_params 3
php_value xdebug.show_mem_delta 1
php_value xdebug.trace_output_dir "./.trace"
php_value xdebug.trace_output_name "trace.%t.%R.html"

Profiling works, tracing doesn't. Folders, naturally, are created. I can't figure out what's wrong.
Immediately cutting off the possible answers:
- after reading the "manuals" on the Internet, I removed all unnecessary directives and tried to leave only auto_trace and output_dir - it still does not work.
- I tried to use php_flag On instead of php_value, where possible. Did not help.
- I added the names of the parameters in quotes, and the values ​​\u200b\u200bdid not help.
- simplified trace.output_name to a simple "trace", without any% t, well, you never know. But no…
— moved to hell all these directives, profiling together, from .htaccess to the project's virtual host template (in /etc/apache2/sites-available/). Profiling both worked and works, tracing also does not plow stably
Help :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Shestakov, 2012-11-28
@boolive

in php.ini can put settings? Is there a trace folder?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question