diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bc2f8bc1b943b7439ee5b8476d52583583713fce..867e0a6033d09f0d8add5b3ea74f39fdd630cb76 100755
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,6 +11,16 @@ variables:
 before_script:
   - export http_proxy=${HTTP_PROXY}
   - export https_proxy=${HTTP_PROXY}
+  - pear config-set http_proxy ${HTTP_PROXY}
+  - pear update-channels && pear upgrade --force
+  - wget http://pecl.php.net/get/xdebug-2.6.0.tgz
+  - tar xzf xdebug-2.6.0.tgz
+  - cd xdebug-2.6.0/
+  - phpize
+  - ./configure
+  - make && make install
+  - cd ..
+  - docker-php-ext-enable xdebug
   - pecl install xdebug
   - docker-php-ext-configure intl
   - docker-php-ext-install json intl mysqli