We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 784cb86 commit 0b39385Copy full SHA for 0b39385
compose/bin/xdebug
@@ -21,8 +21,7 @@ xdebug_toggle() {
21
xdebug_enable() {
22
if [[ $S == 1 ]]; then
23
bin/root sed -i -e 's/^xdebug.mode = off/xdebug.mode = debug/g' /usr/local/etc/php/php.ini
24
- sleep 1
25
- bin/restart phpfpm
+ bin/cli kill -USR2 1
26
echo "Xdebug debug mode has been enabled."
27
else
28
echo "Xdebug debug mode is already enabled."
@@ -32,8 +31,7 @@ xdebug_enable() {
32
31
xdebug_disable() {
33
if [[ $S == 0 ]]; then
34
bin/root sed -i -e 's/^xdebug.mode = debug/xdebug.mode = off/g' /usr/local/etc/php/php.ini
35
36
37
echo "Xdebug debug mode has been disabled."
38
39
echo "Xdebug debug mode is already disabled."
0 commit comments