ctcrnitv
8/6/2017 - 2:07 AM

configures Mocha Tests debugger in vscode note: 8/5/2017 using Node.js v6.9.1 for JS401 therefore uses legacy protocol

configures Mocha Tests debugger in vscode note: 8/5/2017 using Node.js v6.9.1 for JS401 therefore uses legacy protocol

{
  // Use IntelliSense to learn about possible Node.js debug attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [

    {
      "type": "node",
      "request": "launch",
      "name": "Mocha Tests",
      "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
      "args": [
        "-u",
        "tdd",
        "--timeout",
        "999999",
        "--colors",
        "${workspaceRoot}/test/*"
      ],
      "internalConsoleOptions": "openOnSessionStart"
    }
  ]
}