vscode+vagrant+xdebug调试

配置:

{
            "name": "Listen for XDebug",
            "type": "php",
            "request": "launch",
            "stopOnEntry":false,
            "localSourceRoot": "E:\\code\\juche\\anjie\\public",
            "serverSourceRoot": "/code/juche/anjie/public",
            "port": 9000
        }

 

localSourceRoot:本地文件
serverSourceRoot:服务器代码

调试步骤:
  1、打上断点
  2、按F5开启监听
  3、http请求到达断点
posted @ 2018-05-17 17:35  Sentiger  阅读(408)  评论(0编辑  收藏  举报