Skip to content

Instantly share code, notes, and snippets.

View yaoxiaofeng1989's full-sized avatar

xiaofeng yaoxiaofeng1989

  • Horizon Robotics
  • nanjing
View GitHub Profile
@yaoxiaofeng1989
yaoxiaofeng1989 / README.md
Created July 10, 2017 01:57 — forked from chadrien/README.md
Debug PHP in Docker with PHPStorm and Xdebug

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \