Xdebug需要不同的Zend版本

ben*_*r78 11 php xdebug

我真的很茫然,我只是不明白如何解决这个错误.

Xdebug requires Zend Engine API version 220121212.
The Zend Engine API version 220131226 which is installed, is newer.
Run Code Online (Sandbox Code Playgroud)

我读过一些关于phpize的内容,但是当我运行命令时,我得到...

Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module
Run Code Online (Sandbox Code Playgroud)

我不确定这意味着什么.什么是顶级源目录?

有人可以帮我吗?

谢谢

nur*_*zin 13

这很简单,这对我很有效。只需安装这个

sudo apt install php7.3-xdebug
Run Code Online (Sandbox Code Playgroud)

或者你可以选择你自己的 php 版本。php7.1-xdebug、php7.2-xdebug 等


Bog*_*aru 8

我找到了这个,我认为它会对你有所帮助

https://xdebug.org/wizard.php