PHRDPL-28 Export xdebug IDEKEY and port to an easy setting of debug configuration (#2430)

This commit is contained in:
xrousset78800
2018-01-09 18:25:51 +01:00
committed by jygaulier
parent 9a5f4f3d1b
commit 215e47fb79
3 changed files with 19 additions and 3 deletions

View File

@@ -1,4 +1,9 @@
---
- name: Install xDebug
sudo: yes
apt: pkg=php5-xdebug state=latest
- name: Install xdebug
apt: pkg=php-xdebug state=latest update_cache=yes
- name: Copy xdebug INI into mods-available folder.
template: >
src=xdebug.ini.j2
dest=/etc/php/5.6/mods-available/xdebug.ini
owner=root group=root mode=644

View File

@@ -0,0 +1,8 @@
[XDebug]
zend_extension=xdebug.so
xdebug.idekey={{ xdebug.idekey }}
xdebug.remote_host=10.0.2.2
xdebug.remote_port={{ xdebug.port }}
xdebug.remote_enable=1
xdebug.remote_autostart=0
xdebug.remote_handler="dbgp"

View File

@@ -80,6 +80,9 @@ php:
- {name: amqp, package: amqp-1.4.0}
xdebug:
install: '1'
idekey: 'PHPSTORM'
port: '10001'
composer:
install: '1'