gpt4 book ai didi

PHPStorm 10、XAMPP、Xdebug/Zend 调试器

转载 作者:搜寻专家 更新时间:2023-10-31 21:05:16 25 4
gpt4 key购买 nike

在过去的几天里,我一直在尝试在我的本地计算机 (Mac OS) 上使用 PHPStorm 10 进行调试。我已经尝试过 ZendDebugger 和 xdebug。

我似乎遇到了同样的问题。我设置了我的解释器,它说 XAMPP 上安装了正确的调试器,但是当我在 PHPStorm 中运行“在 Web 服务器上验证调试器配置”工具时,它给出了错误:没有加载调试扩展。

以下是我对 Xdebug 的 php.ini 文件设置:

[Xdebug]
zend_extension=/Applications/XAMPP/etc/xdebug.so
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.profiler_enable=1
xdebug.profiler_output_dir=/Applications/XAMPP/xamppfiles/htdocs/sam-files/
xdebug.idekey=PHPStorm

我也一直在使用以下在线资源:

https://www.jetbrains.com/phpstorm/help/configuring-xdebug.html

https://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStorm

任何关于这方面的指导都会很棒。

谢谢,

山姆

最佳答案

在 PHPStorm 终端中使用以下命令检查是否加载了正确的扩展

php -i | grep xdebug

您可能需要检查以确保您也加载了正确的 php.ini 文件,方法是使用

php -i | grep ini

关于PHPStorm 10、XAMPP、Xdebug/Zend 调试器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33652243/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com