PhpStorm debugger not stopping at BreakPoints; keeps waiting for xdebug _SESSION_

前端 未结 15 1766
挽巷
挽巷 2021-01-31 14:21

Updated question : PhpStorm | WebMatrix (IISExpress) | Xdebug.remote_port | — Which Port(s) to put where?


I\'m running localhost web server on my Windows machine w

15条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-31 14:53

    If anyone else runs into this issue and is using Vagrant, this is what finally fixed it for me:

    xdebug.remote_host=10.0.2.2
    

    That needs to be the IP address of your local machine from inside the Vagrant box, and 10.0.2.2 is the default. If you ssh into your Vagrant box, it will show the IP where you logged in from if you want to confirm.

    I know this isn't directly relevant to the specific setup the OP had, but this post shows up in a lot of xdebug / PhpStorm Google searches so hopefully this can help someone else.

提交回复
热议问题