Skip to content

Instantly share code, notes, and snippets.

@rufhausen
Created February 20, 2020 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rufhausen/3a7f3167f0041e11a4887176c8a450b9 to your computer and use it in GitHub Desktop.
Save rufhausen/3a7f3167f0041e11a4887176c8a450b9 to your computer and use it in GitHub Desktop.
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [{
"label": "toggle-xdebug-on",
"type": "shell",
"command": "docker-compose exec php /bin/bash -c '/usr/sbin/phpenmod xdebug && pkill -o -USR2 php-fpm'"
},
{
"label": "toggle-xdebug-off",
"type": "shell",
"command": "docker-compose exec php /bin/bash -c '/usr/sbin/phpdismod xdebug && pkill -o -USR2 php-fpm'"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment