Skip to content

Instantly share code, notes, and snippets.

@deyvisonrocha
Created December 14, 2017 20:27
Show Gist options
  • Save deyvisonrocha/0334444a4fb356c99303ef3fe8e8d49c to your computer and use it in GitHub Desktop.
Save deyvisonrocha/0334444a4fb356c99303ef3fe8e8d49c to your computer and use it in GitHub Desktop.
Linux + Visual Studio Code + Docker

Configurations

php.ini file configuration to docker:

xdebug.idekey = "VSCODE"
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_port = 9000
xdebug.remote_host = <ip-of-docker0-bridge-network>

launch.json file configuration to vscode-php

...
  "port": 9000,
    "pathMappings": {
      "/var/www/src": "${workspaceRoot}/src",
      "/var/www/src/app": "${workspaceRoot}/src/app"
    }
  },
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment