Xdebug未显示为安装在phpinfo上

时间:2019-02-09 13:06:55

标签: php xdebug

我已遵循Xdebug向导的说明:

-Download xdebug-2.7.0RC1.tgz
-Install the pre-requisites for compiling PHP extensions.
On your Ubuntu system, install them with: apt-get install php-dev autoconf automake
-Unpack the downloaded file with tar -xvzf xdebug-2.7.0RC1.tgz
-Run: cd xdebug-2.7.0RC1
-Run: phpize (See the FAQ if you don't have phpize).

As part of its output it should show:

Configuring for:
...
Zend Module Api No:      20180731
Zend Extension Api No:   320180731

If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.
-Run: ./configure
-Run: make
-Run: cp modules/xdebug.so /opt/lampp/lib/php/extensions/no-debug-non-zts-20180731
-Edit /opt/lampp/etc/php.ini and add the line
-zend_extension = /opt/lampp/lib/php/extensions/no-debug-non-zts-20180731/xdebug.so
Restart the webserver

但是调试不适用于Visual Studio Code,在phpinfo上Xdebug未显示为已安装扩展。如果我按照指示进行操作...我错过了什么吗?

0 个答案:

没有答案