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请求到达断点