Skip to content

Instantly share code, notes, and snippets.

@fwang
Last active June 10, 2021 22:20

Revisions

  1. fwang revised this gist Jun 10, 2021. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions launch.json.diff
    Original file line number Diff line number Diff line change
    @@ -5,8 +5,10 @@
    "name": "Debug SST Start",
    "type": "node",
    "request": "launch",
    "runtimeExecutable": "npm",
    "runtimeArgs": ["start"],
    - "runtimeExecutable": "npm",
    - "runtimeArgs": ["start"],
    + "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/sst",
    + "runtimeArgs": ["start", "--increase-timeout"],
    + "console": "integratedTerminal",
    "skipFiles": ["<node_internals>/**"]
    },
    @@ -18,10 +20,10 @@
    "args": ["test", "--runInBand", "--no-cache", "--watchAll=false"],
    "cwd": "${workspaceRoot}",
    "protocol": "inspector",
    "console": "internalTerminal",
    "console": "integratedTerminal",
    "internalConsoleOptions": "neverOpen",
    "env": { "CI": "true" },
    "disableOptimisticBPs": true
    }
    ]
    }
    }
  2. fwang created this gist Jun 9, 2021.
    27 changes: 27 additions & 0 deletions launch.json.diff
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    {
    "version": "0.2.0",
    "configurations": [
    {
    "name": "Debug SST Start",
    "type": "node",
    "request": "launch",
    "runtimeExecutable": "npm",
    "runtimeArgs": ["start"],
    + "console": "integratedTerminal",
    "skipFiles": ["<node_internals>/**"]
    },
    {
    "name": "Debug SST Tests",
    "type": "node",
    "request": "launch",
    "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/sst",
    "args": ["test", "--runInBand", "--no-cache", "--watchAll=false"],
    "cwd": "${workspaceRoot}",
    "protocol": "inspector",
    "console": "internalTerminal",
    "internalConsoleOptions": "neverOpen",
    "env": { "CI": "true" },
    "disableOptimisticBPs": true
    }
    ]
    }