In this container XDebug comes pre installed and ready to use.
Although you also need to setup your favorite IDE, see instruction below on how to do that.
Also this ghist was used to setup xdebug.
If you never gonna use this feature and if you believe that it might be causing you performance
issues, you can turn it off easily by setting environment.XDEBUG_CONFIG=remote_enable=0 in your docker-compose.yml.
First of all you'll need to install PHP Debug extension.
Then:
Debug -> Open configurationslaunch.json fileconfigurations{
"name": "Listen to Xdebug",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/var/www/html": "${workspaceRoot}"
},
"log": true
}
Debug -> Start DebuggingRun -> Edit configurations...PHP Remote debugname to docker or whatever you want actuallyFilter debug connection by IDE key... next to dropdown+ in new windowname again to docker or whatevsHost to same IP like in docker-compose.ymlPort to 9000Debugger to XdebugUse path mappings...
File/Direcotry should be your project rootAbsolute path on the server set to `/var/www/htmlIDE key to PHPSTORMRun -> Debug...Content type
Image
Digest
Size
172.7 MB
Last updated
about 8 years ago
docker pull zeeldev/web-docker-aws