skip to Main Content

I was using Ubuntu 17.10 and everything worked. However, after a update to Ubuntu version 18.04 along with a clean install I can no longer get my Xdebug to work properly.

I tried to implement solutions that I found at SO or other sites but none of them helped.

php -v

PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
    with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans

Here is my configuration in php.ini

/etc/php/7.2/apache2/php.ini

(same with /etc/php/7.2/apache2/conf.d/20-xdebug.ini file)

[XDebug]
zend_extension ="/usr/lib/php/20170718/xdebug.so"
xdebug.profiler_enable =On
xdebug.auto_trace=On
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=90000

Xdebug Chrome extension – ide key option

(I cleaned previous cookie belongs to Eclipse)

PHPSTORM

some lines of phpinfo();

PHP Version:   7.2.10-0ubuntu0.18.04.1
Loaded Configuration File:  /etc/php/7.2/apache2/php.ini
Additional .ini files parsed: /etc/php/7.2/apache2/conf.d/20-xdebug.ini
--xdebug--
Version:    2.6.0
IDE Key:    1
xdebug.remote_enable:   On

What is wrong with my setup? And what can I do to fix it?

2

Answers


  1. To check if the server runs xdebug you can place xdebug_break(); inside your php code. This should “hard” pause your script after the call. If not, check your server config.

    Login or Signup to reply.
  2. Phpinfo() shows a value of 1 and not PHPSTORM as intended

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search