Closed benwinding closed 4 years ago
After a lot of trial and error, I finally got this working with vscode. Here's my launch.json, this would be helpful to include in the docs for others.
launch.json
{ "version": "0.2.0", "configurations": [ { "name": "Debug Functions", "request": "launch", "type": "node", "runtimeArgs": [ "-r", "${workspaceFolder}/functions/node_modules/ts-node/register", "-r", "${workspaceFolder}/functions/node_modules/tsconfig-paths/register" ], "args": ["${workspaceFolder}/functions/src/index-localdev.ts"], "cwd": "${workspaceFolder}", "protocol": "inspector", "env": { "NODE_ENV": "development", "TS_NODE_PROJECT": "${workspaceFolder}/functions/tsconfig.json" }, "outFiles": ["${workspaceFolder}/functions/lib/**/*.js"] }, ] }
After a lot of trial and error, I finally got this working with vscode. Here's my
launch.json
, this would be helpful to include in the docs for others.launch.json