Skip to content

Instantly share code, notes, and snippets.

@erikfig
Last active April 22, 2020 13:34
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 erikfig/7a852ca266900f8375412436bfe48782 to your computer and use it in GitHub Desktop.
Save erikfig/7a852ca266900f8375412436bfe48782 to your computer and use it in GitHub Desktop.
# rodar os comandos
pecl install xdebug
docker-php-ext-enable xdebug
#adicionar no arquivo a baixo
/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
# o seguinte, SEM SUBSTITUIR NADA
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_autostart=on
xdebug.remote_connect_back=on
xdebug.idekey=docker
xdebug.default_enable=on
# reiniciar os containers
docker-compose restart
# aviso
o composer é conhecido por deixar tudo lento, por isso optei pela instalação manual dele, caso queira remover ou desativar é só abrir o arquivo de ini e comentar tudo.
## vscode
"pathMappings": {
"caminho-no-docker": "caminho-do-workdir"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment