From ebdd59aed00c7c3fcb8f537ce9c1445d778bd033 Mon Sep 17 00:00:00 2001
From: Stefan Galinski <stefan@sgalinski.de>
Date: Sat, 5 Jun 2021 21:13:05 +0200
Subject: [PATCH] [TASK] Improve hints how to activate the debugger

---
 templates/default/xdebug.ini.erb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/templates/default/xdebug.ini.erb b/templates/default/xdebug.ini.erb
index 2bbe25a..1c41b62 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 -%>
-- 
GitLab