Debugging from multi-root-workspaces does not seem to work - these are a new feature, maybe this is a bug, but there are no actual examples, just psudo-code on the website.
Attribute 'program' is not absolute ('${workspaceFolder}/node_modules/mocha/bin/_mocha'); consider adding '${workspaceFolder}/' as a prefix to make it absolute.
Though obviously it already has an absolute path.
Here is the exact launch configuration I am using:
in VS CODE PROJECTS.code-workspace
file:
{
"folders": [
{
"path": "workspace-one"
},
{
"path": "workspace-two"
},
],
"settings": {},
"launch": {
"configurations": [
{
"type": "node",
"request": "launch",
"name": "WS Mocha 1 File",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--timeout",
"999999",
"--colors",
"${relativeFile}"
],
"stopOnEntry": false,
"cwd": "${workspaceFolder}",
"skipFiles": [
"${workspaceFolder}/node_modules/**/*.js",
]
}
]
}
}
Basically I want to open a particular test in a particular workspace for debugging without having to replicate the launch configuration in each root workspace (I have a lot of them). This launch configuration works fine in .vscode\launch
file for the sub workspaces.