I'm using 'npm start' that works as follows:
"watch": "tsc -w",
"prestart": "npm run build && func extensions install",
"start:host": "func start --cors *",
"start": "npm run start:host & npm run watch",
This works great, but I can't attach to it through vscode, by launch.json:
{ "name": "Attach", "type": "node", "request": "attach", "cwd":"${workspaceFolder}", "protocol": "auto", "port": 9229 }
When I try to attach I get the error:
