Good morning!
I updated Visual Studio Code yesterday and now my Cordova extension is failing. I am getting this error:
[cordova-debug-adapter] TypeError: Path must be a string. Received undefined
It looks like add the "cwd" attribute to each debug scenario in the .vscode/launch.json file fixed the problem. There is a pull request to get it permanently added to further releases.
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Android on device",
"cwd": "${cwd}",
"type": "cordova",
"request": "launch",
"platform": "android",
"target": "device",
"port": 9222,
"sourceMaps": true
},
Additional information https://github.com/Microsoft/vscode-cordova/issues/48