我已经遵循了我发现的所有建议,但我无法让PhpStorm使用PHP 7和xDebug。我确实使用过PHP 5.6。
Xdebug正在由PHP加载。我在phpinfo()
输出中验证了。我已将PhpStorm切换为使用PHP 7版本,并且还将正确的调试器列为xdebug 2.4.0RC3
我的xdebug设置为:
zend_extension = "/usr/local/opt/php70-xdebug/xdebug.so"
xdebug.remote_enable = 1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.remote_host = 127.0.0.1
xdebug.scream = 0
xdebug.cli_color = 1
xdebug.show_local_vars = 1
xdebug.idekey = PHPSTORM
我安装了xdebug chrome扩展程序,并且正确添加了Cookie:XDEBUG_SESSION=PHPSTORM;
。我还在PhpStorm中启用了调试监听器。
有人可以建议我还能做些什么来尝试让我的断点触发?
答案 0 :(得分:4)
所以,在我的情况下,我发现通过将端口从9000
移动到9001
固定。我猜其他东西已经在使用默认端口了。问题解决了!
答案 1 :(得分:0)
以防其他人降落在这里。对我来说,解决方案是二进制文件的路径没有使用"引号"。
[xdebug]
zend_extension = "C:\wamp\bin\php\php7.0.16\ext\php_xdebug-2.5.1-7.0-vc14-x86_64.dll"