Last active
November 26, 2020 20:30
-
-
Save vicentimartins/37c9ab3ab6f7af5b3f653d7ebae14910 to your computer and use it in GitHub Desktop.
Xdebug on VSCode using docker
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
version; '3.7' | |
services: | |
php: | |
volumes: | |
- ... | |
other_settings: | |
- ... | |
enviroment: | |
... | |
XDEBUG_CONFIG: remote_host=host.docker.internal remote_port=9000 remote_enable=1 remote_connect_back=1 | |
other_service: | |
... |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Listen for XDebug", | |
"type": "php", | |
"request": "launch", | |
"port": 9000, | |
"log": true, | |
"stopOnEntry": true, | |
"pathMappings": { | |
"/application": "${workspaceRoot}" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some notes:
stopOnEntry
will stop request execution but you'll access and check your breakpointspatchMappings
should follow server_path to local_path order