Skip to content

Instantly share code, notes, and snippets.

@Ash-Kay
Created February 6, 2021 14:36
Show Gist options
  • Select an option

  • Save Ash-Kay/b3145ae8b5ef220b6ac3a053bb264b95 to your computer and use it in GitHub Desktop.

Select an option

Save Ash-Kay/b3145ae8b5ef220b6ac3a053bb264b95 to your computer and use it in GitHub Desktop.

Revisions

  1. Ash-Kay created this gist Feb 6, 2021.
    47 changes: 47 additions & 0 deletions launch.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,47 @@
    {
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [

    {
    "name": "Debug index.ts",
    "type": "node",
    "request": "launch",
    "cwd": "${workspaceRoot}",
    "runtimeArgs": [
    "-r",
    "ts-node/register"
    ],
    "args": [
    "${workspaceRoot}/src/index.ts"
    ],
    "sourceMaps": true,
    "outFiles": [
    "${workspaceFolder}/build/**/*.js"
    ],
    "outputCapture": "std"
    },
    {
    "name": "Debug Mocha Tests",
    "type": "node",
    "request": "launch",
    "cwd": "${workspaceRoot}",
    "program": "${workspaceRoot}/node_modules/mocha/bin/mocha",
    "sourceMaps": true,
    "args": [
    "-r",
    "ts-node/register",
    "--timeout",
    "999999",
    "--colors",
    "${workspaceRoot}/test/**/*.test.ts",
    ],
    "outputCapture": "std",
    "console": "integratedTerminal",
    "internalConsoleOptions": "neverOpen",
    "protocol": "inspector"
    }
    ]
    }