Last active
April 22, 2020 13:34
-
-
Save erikfig/7a852ca266900f8375412436bfe48782 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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