我正在尝试让 PHPStorm 与 Xdebug 对话,但运气不佳。
这是我的设置:我有一个虚拟机,它从我的本地机器共享我的 php 文件
我正在尝试遵循这个: http ://blog.jetbrains.com/webide/2011/02/zero-configuration-debugging-with-xdebug-and-phpstorm-2-0/
我将以下内容放入我的 php.ini
zend_extension = /usr/lib64/php/modules/xdebug.so
xdebug.remote_connect_back = 1
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_mode = req
xdebug.remote_port = 9000
xdebug.remote_host = <my ip address>
xdebug.remote_log = /tmp/xdebug_remote.log
看来我根据 phpinfo() 成功运行了 xdebug。
我打开我的脚本,打开监听器。但是当我进入教程的“在服务器上激活调试器”部分时,事情就崩溃了。我下载了firefox插件来启动调试器(这个:https ://addons.mozilla.org/en-US/firefox/addon/easy-xdebug/ ),点击图标启动调试器,重新加载页面,但是phpstorm 没有找到它。我还尝试添加 XDEBUG_SESSION_START=1 作为 POST 值,但仍然没有运气。
我究竟做错了什么?