• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2
3  Copy this file into '.vscode/launch.json' or merge its
4  contents into your existing configurations.
5
6  If you want to remove the errors in comments for all JSON
7  files, add this to your settings in ~/.vscode/User/settings.json
8
9  "files.associations": {
10      "*.json": "jsonc"
11  },
12
13*/
14
15{
16  // Use IntelliSense to learn about possible attributes.
17  // Hover to view descriptions of existing attributes.
18  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
19  "version": "0.2.0",
20  "configurations": [
21    {
22      "type": "node",
23      "protocol": "inspector",
24      "request": "launch",
25      "name": "Mocha Tests (currently opened test)",
26      "runtimeArgs": ["--nolazy"],
27      "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
28      "args": [
29        "-u",
30        "bdd",
31        "--no-timeouts",
32        "--colors",
33        "built/local/run.js",
34        "-f",
35        // You can change this to be the name of a specific test file (without the file extension)
36        // to consistently launch the same test
37        "${fileBasenameNoExtension}",
38        "--skip-percent",
39        "0"
40      ],
41      "env": {
42        "NODE_ENV": "testing"
43      },
44      "sourceMaps": true,
45      "smartStep": true,
46      "preLaunchTask": "gulp: tests",
47      "console": "integratedTerminal",
48      "outFiles": [
49        "${workspaceRoot}/built/local/run.js"
50      ],
51
52      // NOTE: To use this, you must switch the "type" above to "pwa-node". You may also need to follow the instructions
53      // here: https://github.com/microsoft/vscode-js-debug#nightly-extension to use the js-debug nightly until
54      // this feature is shipping in insiders or to a release:
55      // "customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue"
56    },
57    {
58      // See: https://github.com/microsoft/TypeScript/wiki/Debugging-Language-Service-in-VS-Code
59      "type": "node",
60      "request": "attach",
61      "name": "Attach to VS Code TS Server via Port",
62      "processId": "${command:PickProcess}",
63
64      // NOTE: To use this, you must switch the "type" above to "pwa-node". You may also need to follow the instructions
65      // here: https://github.com/microsoft/vscode-js-debug#nightly-extension to use the js-debug nightly until
66      // this feature is shipping in insiders or to a release:
67      // "customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue"
68    }
69  ]
70}
71