且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法使用PhpStorm + Vagrant + XDebug进行调试

更新时间:2023-09-12 11:47:40

问题非常愚蠢-我在Vagrantfile中转发了端口9000,而不必这样做...

The problem was very stupid - I forwarded port 9000 in the Vagrantfile, and I didn't have to do so...

现在,实际上我看到xdebug.ini中唯一需要的行是:

Now, actually I see that the only necessary lines in xdebug.ini are:

zend_extension = ...
xdebug.remote_enable = on
xdebug.remote_connect_back = on

如果您不做愚蠢的事情,则设置非常简单...

The setup is pretty straightforward, if you don't do stupid things...