diff --git a/templates/default/xdebug.ini.erb b/templates/default/xdebug.ini.erb index 2bbe25acfe531f172a57f5311f431d08892cd883..1c41b62a585aab0b6f82b0c1f57916e5449db15f 100644 --- a/templates/default/xdebug.ini.erb +++ b/templates/default/xdebug.ini.erb @@ -4,7 +4,8 @@ ;zend_extension = <%= Mixlib::ShellOut.new("php -i | grep extension_dir | awk 'NR==1 {print $(NF)}'").run_command.stdout.strip %>/xdebug.so zend_extension=xdebug.so -; to activate the profiler: Change the variable "xdebug.mode" to "profile" instead of "debug" and use "xdebug.start_with_request" with "trigger" +; To activate the cachegrind profiler: Change the variable "xdebug.mode" to "profile" instead of "debug" and use "xdebug.start_with_request" with "trigger" instead of "default". +; You must restart the PHP FPM afterwards: e.g. "service php7.3-fpm restart". <% node['xdebug']['directives'].sort_by { |key, val| key }.each do |directive, value| -%> <%= "xdebug.#{directive} = #{value}" %> <% end -%>