{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Debug Test",
      "type": "node",
      "request": "launch",
      "cwd": "${workspaceRoot}",
      "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha",
      "windows": {
        "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha.cmd"
      },
      "runtimeArgs": [
        "--colors",
        "--compilers",
        "js:babel-core/register",
        "${file}"
      ],
      "internalConsoleOptions": "openOnSessionStart"
    },
    {
      "name": "Attach to Port",
      "type": "node",
      "request": "attach",
      "port": 9229,
      "address": "localhost",
      "localRoot": "${workspaceRoot}"
    }
  ]
}

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Debug Test",
      "type": "node",
      "protocol": "inspector",
      "request": "launch",
      "cwd": "${workspaceRoot}",
      "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha",
      "windows": {
        "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha.cmd"
      },
      "runtimeArgs": [
        "--colors",
        "--compilers",
        "js:babel-core/register",
        "${file}"
      ],
      "internalConsoleOptions": "openOnSessionStart"
    },
    {
      "name": "Attach to Port",
      "type": "node",
      "protocol": "inspector",
      "request": "attach",
      "port": 9229,
      "address": "localhost",
      "localRoot": "${workspaceRoot}"
    }
  ]
}

Enforce inspector protocol for node debugging
Enforce inspector protocol for node debugging

Currently, the debugging protocol in VSCode defaults to "legacy" [1].
Even "auto" does not yet select the new protocol as it should with
node versions >= 6.9.

Set the protocol to "inspector" to enforce the new protocol, as the
old one does not work with code that is transpiling on the fly.

https://code.visualstudio.com/docs/editor/node-debugging

Change-Id: Icd643499a1ccc03c894ae96e4b9bb7e7876ce52a
