From f2cf2f802f92d589504e9a4da8c13f0dd087e80a Mon Sep 17 00:00:00 2001 From: almenon Date: Wed, 3 Mar 2021 20:36:02 -0800 Subject: [PATCH] update launch.json add current ts file launch option remove deprecated python options change formatting of args --- .vscode/launch.json | 74 ++++++++++++++++++++++++++++----------------- 1 file changed, 47 insertions(+), 27 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 27b78d2..720ecc4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,28 +1,48 @@ { - "version": "0.2.0", - "configurations": [ - { - "name": "Python", - "type": "python", - "request": "launch", - "stopOnEntry": true, - "pythonPath": "${config:python.pythonPath}", - "program": "${file}", - "cwd": "${workspaceRoot}", - "env": {}, - "envFile": "${workspaceRoot}/.env", - "debugOptions": [ - "RedirectOutput" - ] - }, - { - "name": "Current TS Tests File", - "type": "node", - "request": "launch", - "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", - "args": ["-r", "ts-node/register", "${relativeFile}","--ui","tdd","--no-timeouts"], - "cwd": "${workspaceRoot}", - "protocol": "inspector" - } - ] - } \ No newline at end of file + "version": "0.2.0", + "configurations": [ + { + "name": "Current TS File", + "type": "node", + "request": "launch", + "args": [ + "${relativeFile}" + ], + "runtimeArgs": [ + "--nolazy", + "-r", + "ts-node/register" + ], + "sourceMaps": true, + "cwd": "${workspaceRoot}", + "protocol": "inspector", + }, + { + "name": "Python", + "type": "python", + "request": "launch", + "stopOnEntry": true, + "python": "${command:python.interpreterPath}", + "program": "${file}", + "cwd": "${workspaceRoot}", + "env": {}, + "envFile": "${workspaceRoot}/.env", + }, + { + "name": "Current TS Tests File", + "type": "node", + "request": "launch", + "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", + "args": [ + "-r", + "ts-node/register", + "${relativeFile}", + "--ui", + "tdd", + "--no-timeouts" + ], + "cwd": "${workspaceRoot}", + "protocol": "inspector" + } + ] +} \ No newline at end of file