Skip to content

Instantly share code, notes, and snippets.

@atsjj atsjj/launch.json
Created Jun 21, 2018

Embed
What would you like to do?
{
// 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": "Launch File",
"protocol": "inspector",
"request": "launch",
"type": "node",
"cwd": "${workspaceFolder}",
"env": {
"NODE_ENV": "development"
},
"autoAttachChildProcesses": true,
"internalConsoleOptions": "openOnSessionStart",
"runtimeArgs": [
"--require",
"ts-node/register"
],
"args": [
"${relativeFile}"
]
},
{
"name": "Launch Program",
"protocol": "inspector",
"request": "launch",
"type": "node",
"cwd": "${workspaceFolder}",
"env": {
"NODE_ENV": "development"
},
"autoAttachChildProcesses": true,
"internalConsoleOptions": "openOnSessionStart",
"runtimeArgs": [
"--require",
"ts-node/register"
],
"args": [
"${workspaceFolder}/index.ts"
]
},
{
"type": "node",
"request": "launch",
"name": "Launch Tests",
"cwd": "${workspaceFolder}",
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
"env": { "NODE_ENV": "test" },
"args": [
"--no-timeouts",
"--colors",
"--recursive",
"--inspect-brk",
"${workspaceFolder}/test/**/*.ts",
"--require",
"ts-node/register"
],
"stopOnEntry": false,
"internalConsoleOptions": "openOnSessionStart",
"sourceMaps": true,
"protocol": "inspector",
"outFiles": ["${workspaceFolder}/build/**/*.*"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.