我的Laravel项目是在VS Code中设置的。该项目设置为使用Homestead / Vagrant。我试图设置launch.json文件,但我无法弄清楚pathMappings必须如何设置:
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/path/on/server": "${workspaceRoot}/local/path"
}
}
]
如何设置:/path/on/server
?
如何设置:${workspaceRoot}/local/path
?