PHP version: 7.0
XDebug version: php_xdebug-2.6.0-7.0-vc14-nts.dll
launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"c:\\inetpub\\mamobile dev\\mamobile": "${workspaceFolder}"
}
}
]
}
Problem:
VSCode cannot find files because the path is incorrect. I believe this is because I am using a mac as a client debugger with the host being a windows IIS server.

/Users/hackmodford/Code/PHPStorm Projects/ma-mobile-webservice/routes\Inventory.php (incorrect path in message)
/Users/hackmodford/Code/PHPStorm Projects/ma-mobile-webservice/routes/Inventory.php (path of file in vscode)
/Users/hackmodford/Code/PHPStorm Projects/ma-mobile-webservice/routes/Inventory.php (path in FS)
Looks like the paths.ts needs to be fixed to address this.
This seems to be related to #216
Adding this to line 48 of paths.ts solves the problem for me. However, I am no typescript expert, so I imagine there is a better solution?
if (serverIsWindows && !isWindowsUri(localPath)) {
//Change all the backslashes to forward slashes.
let re = /\\/gi;
localPath = localPath.replace(re, "/");
}
Most helpful comment
Adding this to line 48 of paths.ts solves the problem for me. However, I am no typescript expert, so I imagine there is a better solution?