Skip to content

Instantly share code, notes, and snippets.

@philipecampos
Last active May 2, 2023 20:44
Show Gist options
  • Save philipecampos/0f473bb7a9c932a8adf442b42eeaf54e to your computer and use it in GitHub Desktop.
Save philipecampos/0f473bb7a9c932a8adf442b42eeaf54e to your computer and use it in GitHub Desktop.
Configuração do xdebug para funcionar com phpstorm
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.idekey=PHPSTORM
xdebug.remote_autostart=1
xdebug.remote_connect_back=1
xdebug.remote_host=127.0.0.1

Para usar no VSCode

Menu Run > Add Configuration...

Será gerado um arquivo na raiz do projeto com o nome de .vscode/launch.json. Deixar o conteúdo de "Listen for Xdebug":

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