[英]Xdebug 3 not showing in phpinfo on m1 Monterey
After installing xdebug with sudo pecl install xdebug
it looks that is installed but only in CLI.使用
sudo pecl install xdebug
后,它看起来已安装但仅在 CLI 中。
php -i | grep "xdebug"
php -i | grep "xdebug"
- this returns a lot of rows php -i | grep "xdebug"
- 这会返回很多行
Then when I go in my browser, in phpinfo()
is nothing relate to xdebug.然后,当我在浏览器中使用 go 时,在
phpinfo()
中与 xdebug 无关。 I've checked that I run the same php instance, both CLI and Apache are using /opt/homebrew/etc/php/7.4/php.ini
ini file, I've made changes and they were visible in both CLI and Web.我检查了我是否运行相同的 php 实例,CLI 和 Apache 都在使用
/opt/homebrew/etc/php/7.4/php.ini
ini 文件,我进行了更改,它们在 CLI 和 ZE934CCE39EZ5046 中都可见。 Also还
If I try a function it returns fatal error Fatal error: Uncaught Error: Call to undefined function xdebug_info()
如果我尝试 function 它返回致命错误
Fatal error: Uncaught Error: Call to undefined function xdebug_info()
You have several php.ini files.您有几个php.ini文件。 You will need to find the php.ini file Apache uses, add
您需要找到php.ini文件 Apache 使用,添加
zend_extension = "/path/to/php_xdebug.dll"
and make sure that the path is correct and the file exists.并确保路径正确且文件存在。 See more here: http://www.sintesisdigital.com.mx/dashboard/docs/activate-use-xdebug.html
在此处查看更多信息: http://www.sintesisdigital.com.mx/dashboard/docs/activate-use-xdebug.html
Came across this post year and a half late while trying to solve the same issue.在尝试解决同样的问题时,迟到了一年半才发现这个帖子。 I work on the Monterey with intel chipset.
我使用英特尔芯片组在 Monterey 上工作。
I presume that the docs were changed from the time you posted but the command you are using is for intel chipset.我认为文档在您发布时已更改,但您使用的命令是针对英特尔芯片组的。 You can see it here .
你可以在这里看到它。
Current doc state.当前文档 state。
Intel chipset:英特尔芯片组:
pecl install xdebug
m1 chips(and fish:P) m1薯条(和鱼:P)
arch -arm64 sudo pecl install xdebug
or或者
arch -x86_64 sudo pecl install xdebug
Off to solving my own old problems wish me luck and hope I helped somebody去解决我自己的老问题祝我好运,希望我能帮助别人
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.