xdebug no longer working after php upgrade [SOLVED]

I recently upgraded php to version 5.4.6 and my debugging with vim and xdebug got broken with no visible error message.

I found out that xdebug was not correctly updated.
“cat /etc/php5/conf.d/20-xdebug.ini” reveals following content:

zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so

A quick “ls /usr/lib/php5” returns the following:

20100525+lfs  libexec  maxlifetim

Conclusion: xdebug.ini is pointing to a no-longer existing folder.

Solution

Uninstalling php5-xdebug and reinstalling it did not solve the issue.
Simply manually edit the 20-xdebug.ini file to point towards correct folder, in that case:

zend_extension=/usr/lib/php5/20100525+lfs/xdebug.so

 

Post a Comment

Your email is never published nor shared. You're allow to say what you want...