XDEBUG/PHP doesn't dump profile even when set up properly?

Posted by John D. on Server Fault See other posts from Server Fault or by John D.
Published on 2010-09-14T04:40:59Z Indexed on 2011/02/10 7:26 UTC
Read the original article Hit count: 583

Filed under:
|
|
|
|

I installed xdebug from source, but also tried my package manager (separately) and they both are loaded correctly (verified by restarting Apache and seeing the xdebug copyright info in phpinfo()) but they do not dump profiling information.

Out of the 40 different attempts of configuration it logged once or twice but I lost what I did, I tried with first only loading the module in php.ini with no settings, but it didn't log to /tmp/. I tried many different settings but my current is now:

xdebug.profiler_enable = Off
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = "/tmp/"
xdebug.profiler_output_name = "profiler.%t"  

Of course I call my script through 127.0.0.1/test.php?XDEBUG_PROFILE, which is for enable_trigger.

Do you know why it would not dump profiler information? nobody (Arch Linux) can write to /tmp/ as it has before, so I'm sure it is not a permissions error. Apache's error_log does not tell me anything about xdebug either, as it has loaded correctly. It just does not "work"!

EDIT: I made a subfolder "xdebug_profiles" in /tmp/ and chown'ed it to nobody, and now it works flawlessly. I'm not sure why it couldn't write before, I guess it's just a caveat with nobody on Arch.

I answered my own question , not enough points to answer it or comment, so consider this answered.

© Server Fault or respective owner

Related posts about apache

Related posts about php