XDebug Profiler files

I am not sure where to find the cachegrind files that the XDebug Profiler outputs. Can someone point me in the right direction? Thanks!

Hi Andrew,

The profiler is disabled by default. You can enable it by changing xdebug.profiler_enable to 1 in php.ini for the specific version of PHP you’re using. It will be under /conf/php/VERSION/php.ini in the site folder.

To answer your original question, it looks like they’ll be in /tmp in the site container. I would recommend adding xdebug.profiler_output_dir and setting it to /app. For more info, see https://xdebug.org/docs/profiler

After you change the config you’ll need to restart the site so the config changes take effect.

1 Like

Hi, I know this is an old post but where is the php.ini file. There is no conf folder in my site folder.
I can get to using SSH access but I cannot open the file using vi php.ini for example.

Hi @cjwd,

The Preferred environment doesn’t have Xdebug so if you want Xdebug you’ll need to export your current site and then re-import it into the “Custom” environment.

Then, you’ll be able to access the conf folder.

Thanks Clay for the explanation. appreciated.

It’d be helpful to have this information more easily found. I spent a few head scratching hours trying to figure out why Xdebug wasn’t working without realizing that it wasn’t included in the preferred environment even though it’s listed under the Utilities section for the site. Having something in the Utilities area letting the user know if Xdebug is or is not available would be great.

Hi Gabe,

I’ve put this into our backlog.

Sorry for the confusion!