xdebug profiler on a per project basis?
is there a way to set the profiler_output_dir to output per domain?
right now on my local network remote dev machine i have many projects.
I would like to set the profiler output for the site to appear within the currently setup FTP area so i can download it from within PhpStorm via the "Remote Host" panel.
/var/www/vhosts/admin/somesite.com/httpdocs/profiler_output
/var/www/vhosts/admin/different-site.com/httpdocs/profiler_output
/var/www/vhosts/admin/yet-another-site.com/httpdocs/profiler_output
/var/www/vhosts/admin/some-other-site.com/httpdocs/profiler_output
If I set the profiler_output_dir to a fixed location on the remote dev machine I have to go outside PhpStorm to transfer the profiler output back to my local machine to then run the profiler. Hoping to avoid leaving PhpStorm.
Possible?
Please sign in to leave a comment.
Hello michael,
You can override 'xdebug.profiler_output_dir' in .htaccess file (so it possible configure it even for separate directory). Here is an example:
Thank you for feedback!
Thanks very much Nikolay, that sounds perfect. :)
michael,
Does it work for you?
Thank you for feedback!
Don't know yet Nikolay sorry.
Im busy doing client work during the weekdays. I will be able to try it out on my days off when I can work on my own stuff. Ill let you know.
michael,
Thanks!
works perfectly.
Thanks Nikolay.
Went with:
in the .htaccess file and on the next refresh in the browser an new file appeared. :)