I have following setup in php.ini (Apache 2.4 / PHP 5.5 / Fedora 19):
[XDebug]
zend_extension="/usr/lib64/php/modules/xdebug.so"
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_mode=req
xdebug.remote_port = 9000
xdebug.remote_host = localhost
xdebug.show_local_vars=On
xdebug.dump_undefined=On
xdebug.collect_return=On
xdebug.idekey=netbeans-xdebug
xdebug.profiler_enable = 1
By using PHP info, I can see Xdebug loaded and all setup directives properly loaded. However, I can't see any cachecgrind output anywhere.
I've tried so much variations with some directives, using /tmp or /var/tmp + also different file names. Currently I left it as it's by default.
SeLinux is disabled. /tmp has proper permissions. I have tried with _trigger directive and also with enabled by default. Without any cachegrind file anywhere, confirmed by using updatedb & locate cachegrind.
For some reason this worked for me:
xdebug.profiler_enable = on
xdebug.profiler_output_name = xdebug.out.%t
xdebug.profiler_output_dir = /var/www/projects/myproject/xdebug
I've put the profiler_output_dir in the same directory as my virtual site which I'm trying to profile.