Cannot debug with PhpStorm + Vagrant + XDebug

前端 未结 3 1760
悲&欢浪女
悲&欢浪女 2021-02-01 18:37

I cannot get XDebug to work with PhpStorm and Vagrant on a Windows 7 machine. I\'ve already followed every tutorial on getting this to work but with no luck.

So what I\'

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-01 18:43

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

    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...

提交回复
热议问题