Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

xdebug vscode docker

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
      {
        "type": "shell",
        "command": "docker-compose exec exemplo sh -c 'sed -i "/xdebug.mode=off/cxdebug.mode=debug" /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && /etc/init.d/apache2 reload'",
        "label": "enable:xdebug"
      },
      {
        "type": "shell",
        "command": "docker-compose exec exemplo sh -c 'sed -i "/xdebug.mode=debug/cxdebug.mode=off" /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && /etc/init.d/apache2 reload'",
        "label": "disable:xdebug"
      }
    ]
  }
Source by supliu.com.br #
 
PREVIOUS NEXT
Tagged: #xdebug #vscode #docker
ADD COMMENT
Topic
Name
2+2 =