I have managed to start debugger, but it looks like VS Code do not see the sourcemap.
When I add debugger
JS statement, it breaks in webpack generated file main.js
(that do not event exists in file system) but using this is painfull.
I have next setup:
package.json:
"scripts": {
"test:debug": "node --inspect-brk ./node_modules/@vue/cli-service/bin/vue-cli-service.js test:unit"
}
launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug unit tests",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/node_modules/@vue/cli-service/bin/vue-cli-service.js",
"args": [
"test:unit",
"--inspect-brk"
],
"port": 9229
}
]
}
I tried different ways to specify a source maps but nothing helped.
Does anyone have a working setup?