我希望使用PHPstorm IDE和xdebug调试我的服务器站点。在本地工作得非常好,但是当我想要配置从服务器进行调试时,就无法正常工作。
我已经在服务器上安装了xdebug,并进行了以下配置:
xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.remote_handler=dbgp
xdebug.remote_host=MY IP
xdebug.remote_port=9000
xdebug.idekey=PHPSTORM
然后在PHPSTORM的“编辑配置”中设置了“PHP远程调试”和“服务器”
在服务器上,我输入:
Name: xxxx
Port: 80
Host: Url of my site
Debugger: Xdebug
I checked "Use Path Mapping" and in File/Directory i put my local proyect path "/home/mysite"
In "Absolute path on the server" i put the path in the server where are the proyect: "/var/www/html/mysite"
在“PHP远程调试”中,我输入了以下内容:
Name: xxxx
Servers: the server created previously
IDE key: PHPSTORM
这些设置没有起作用。我使用带有 IDE 键 PHPstorm 启用的 Chrome 扩展 Xdebug。
我缺少什么才能正常工作?