Cannot debug with PhpStorm + Vagrant + XDebug

前端 未结 3 1725
悲&欢浪女
悲&欢浪女 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条回答
  •  伪装坚强ぢ
    2021-02-01 18:52

    I had to set

    xdebug.remote_connect_back = '0'
    xdebug.remote_host= '10.0.2.2'
    

    so my whole config looks like this:

    xdebug.default_enable: '1'
    xdebug.remote_autostart: '1'
    xdebug.remote_connect_back: '0'
    xdebug.remote_enable: '1'
    xdebug.remote_handler: dbgp
    xdebug.remote_host: '10.0.2.2'
    xdebug.max_nesting_level: '400'
    

    Host: Linux

    VM: Vagrant with PuPHPet using VirtualBox

    nothing special to configure in PhpStorm

    found it here: http://jeromejaglale.com/doc/php/xdebug_vagrant_puphpet_phpstorm

提交回复
热议问题