项目作者: zioDocker

项目描述 :
Basic php cli image containing xdebug and composer
高级语言: Dockerfile
项目地址: git://github.com/zioDocker/php-cli-xdebug.git
创建时间: 2020-04-01T10:02:01Z
项目社区:https://github.com/zioDocker/php-cli-xdebug

开源协议:

下载


php-cli-xdebug

Basic docker php-cli image, coming with xdebug and composer to debug php code

Build the image

  1. docker build -t zio-docker:php-cli72 .

Run the container

  1. docker run --rm -v $(pwd):/usr/src/app zio-docker:php-cli72 bash -c "php test.php"

Set it up in php storm

  • Build your image, so u have it on your local system
  • Go to preferences->Languages & Frameworks->PHP and add a new interpreter, choosing Docker

  • Always inside the preferences add a new server:

  • Now add a remote debug from the dropdown in the right corner of phpstorm

  • Enjoy debugging