Skip to content
Advertisement

Xdebug error on local environment [Failed loading /usr/local/lib/php/pecl/20190902/xdebug.so:]

I want to use Xdebug on the vscode.

I tried it while reading the official documentation, but I couldn’t get it to work and got the following error.

JavaScript

php –ini

JavaScript

Has anyone else encountered the same problem? Thank you.

Advertisement

Answer

I got this working by doing something similar to this: https://stackoverflow.com/a/48054252

I added

JavaScript

to ~/.bash_profile.

You can run source ~/.bash_profile after editing the file to get the changes to take effect.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement