Merge branch 'xdebug' of git://github.com/that0n3guy/nginx-php-fpm

This commit is contained in:
Ric Harvey
2017-08-18 14:19:54 +01:00
4 changed files with 44 additions and 1 deletions

6
docs/xdebug.md Normal file
View File

@@ -0,0 +1,6 @@
## Install PHP Modules
Xdebug comes pre-installed. To enable xdebug you need to add a couple environment variables:
- `ENABLE_XDEBUG=1` This will add the xdebug.ini to your php extensions
- `XDEBUG_CONFIG=remote_host=you.local.ip.here` Sets an xdebug remote host environment var. This is usually your actual local computers IP.
- `PHP_IDE_CONFIG=serverName=NameUsedInPhpStormServerConfig` This is an example of how to use this in PhpStorm. You configure a server in php storm with a name, set that in this var.