Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Please add how to use with vscode launch.json #116

Closed
benwinding opened this issue Apr 6, 2020 · 0 comments · Fixed by #123
Closed

[Docs] Please add how to use with vscode launch.json #116

benwinding opened this issue Apr 6, 2020 · 0 comments · Fixed by #123

Comments

@benwinding
Copy link
Contributor

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"]
    },
  ]
}
benwinding added a commit to benwinding/tsconfig-paths that referenced this issue May 8, 2020
jonaskello pushed a commit that referenced this issue May 11, 2020
* Update Readme fixes #116

* Update README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant