Sign inSign up

andrdru/php-fpm-xdebug

By andrdru

•Updated almost 9 years ago

image andrdru/php-fpm with xdebug

Image
0

1.5K

andrdru/php-fpm-xdebug repository overview

⁠docker-php-xdebug

xdebug workaround for php in docker on Windows

This docker image extending my other⁠ docker image

Warning! Use this image for development only

⁠Requirements

  • Docker and docker-compose on Windows

⁠Description

On Windows Docker creates DockerNAT virtual net(10.0.75.0 by default), where host machine on 10.0.75.1 and Docker containers on 10.0.75.2

⁠Usage

  1. Switch off your windows brandmauer, or add exception rule
  2. add local alias to %SYSTEMROOT%\System32\drivers\etc\hosts
10.0.75.2 site.local
  1. Checkout this repository
  2. cd ./example && docker-compose start -d
  3. default debug port is 9001
    For PhpStorm:
  • File->Settings PHP->Debug Xdebug Debug port 9001
  • Run->Start listening for PHP Debug Connections

Open http://site.local⁠ in browser. Now you can debug PHP locally using xDebug on Docker.

Tag summary

Content type

Image

Digest

Size

401.1 MB

Last updated

almost 9 years ago

docker pull andrdru/php-fpm-xdebug