Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xdebug没有';不要在OS X El Capitan上使用PhpStorm_Php_Macos_Phpstorm_Xdebug - Fatal编程技术网

Xdebug没有';不要在OS X El Capitan上使用PhpStorm

Xdebug没有';不要在OS X El Capitan上使用PhpStorm,php,macos,phpstorm,xdebug,Php,Macos,Phpstorm,Xdebug,为了启用带有PhpStorm的xdebug,我完成了以下步骤: 1) 将phpinfo()粘贴到,并在我的系统xdebug-2.5.0.tgz(php版本为5.6.27)中获得正确的xdebug版本 2) 通过运行brew安装自制/php/php56 xdebug安装xdebug 3) 编辑位于phpinfo()的php.ini,添加以下行 zend_extension=/usr/local/Cellar/php56/5.6.27_4/lib/php/extensions/no-debug-no

为了启用带有PhpStorm的xdebug,我完成了以下步骤:

1) 将
phpinfo()
粘贴到,并在我的系统xdebug-2.5.0.tgz(php版本为5.6.27)中获得正确的xdebug版本

2) 通过运行
brew安装自制/php/php56 xdebug安装xdebug

3) 编辑位于
phpinfo()
的php.ini,添加以下行

zend_extension=/usr/local/Cellar/php56/5.6.27_4/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_mode="req"
xdebug.remote_log="/usr/local/var/log/xdebug.log" 
xdebug.remote_host=xxxx.com
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.idekey="PHPSTORM"
4) PhpStorm可以识别xdebug,但下面有一些错误

5) 尝试执行web服务器调试验证,获取

那么我应该怎么做才能修复它呢?

您的第一个屏幕截图(底部)显示您在加载扩展时遇到了问题(包括xdebug(另一个?)。1) 首先清除它们——确保屏幕的这个区域没有警告。2) 注意加载的其他
.ini
配置文件--检查它们*它们可能包含那些断开的引用等)3)
xdebug.remote\u host=xxxx.com
--这是错误的--这应该是运行调试客户机(在您的情况下是PhpStorm)的计算机的IP。对于同一台计算机,
127.0.0.1
可以很好地完成这项工作。4)如何运行php?那是php fpm吗?如果是,请将xdebug端口(在php.ini和PhpStorm设置中)更改为另一个值(例如
9001
左右),因为php fpm默认使用相同的TCP 9000端口,这会阻止xdebug与IDE通信。