Unable to install xdebug - undefined symbol: zend_post_startup_cb

Solution 1:

I was able to install it by executing sudo apt-get install php-xdebug. I wonder why it does not work if I try to install it manually by going the official way and installing it via source...??

However, I get "Waiting for Connection" in NetBeans and nothing happens, but this is another problem...

Solution 2:

In my case, i just put this xdebug config the wrong file:


which is /etc/php/7.2/cli/php.ini , instead, it should be /etc/php/7.2/apache2/php.ini