Sign inSign up

zeeldev/web-docker-aws

By zeeldev

•Updated about 8 years ago

AWS build

Image
0

10K+

zeeldev/web-docker-aws repository overview

⁠AWS prod like docker container

⁠XDEBUG

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.

⁠Disabling 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.

⁠VSCode

First of all you'll need to install PHP Debug⁠ extension.

Then:

  1. Go to Debug -> Open configurations
  2. It will open launch.json file
  3. Add following object into configurations
{
    "name": "Listen to Xdebug",
    "type": "php",
    "request": "launch",
    "port": 9000,
    "pathMappings": {
        "/var/www/html": "${workspaceRoot}"
    },
    "log": true
}
  1. Toggle debug session by going to Debug -> Start Debugging
  2. Happy debugging!
⁠PhpStrom
  1. Go to Run -> Edit configurations...
  2. Add new PHP Remote debug
  3. Set name to docker or whatever you want actually
  4. Enable checkbox Filter debug connection by IDE key
  5. Now you will need to add server
    1. Press ... next to dropdown
    2. Press + in new window
    3. Set name again to docker or whatevs
    4. Set Host to same IP like in docker-compose.yml
    5. Set Port to 9000
    6. Set Debugger to Xdebug
    7. Check Use path mappings...
      1. File/Direcotry should be your project root
      2. Absolute path on the server set to `/var/www/html
    8. Press OK
  6. Set IDE key to PHPSTORM
  7. Press Apply, OK
  8. Done, launch debug session by Run -> Debug...
  9. Happy debugging!

Tag summary

Content type

Image

Digest

Size

172.7 MB

Last updated

about 8 years ago

docker pull zeeldev/web-docker-aws