From b60177526da20f7895eb2bb31555acef0df0a0f7 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Sun, 15 Nov 2020 15:05:58 -0500 Subject: [PATCH] Fixed VSCode debugging setup --- .vscode/launch.json | 93 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 86 insertions(+), 7 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 6dfcd9b296f..8970fe9c9eb 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,18 +1,90 @@ { "version": "0.2.0", "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Debug unit_consumer", + "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava", + "preLaunchTask": "npm: pretest-incremental", + "runtimeArgs": [ + "build/test/test/source/test.js", + "--verbose", + "--concurrency=1", + "--", + "CONSUMER-MOCK", + "UNIT-TESTS", + "--retry=false", + "--debug", + "--pool-size=1", + ], + "outputCapture": "std", + "skipFiles": [ + "/**/*.js" + ] + }, + { + "type": "node", + "request": "launch", + "name": "Debug unit_enterprise", + "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava", + "preLaunchTask": "npm: pretest-incremental", + "runtimeArgs": [ + "build/test/test/source/test.js", + "--verbose", + "--concurrency=1", + "--", + "ENTERPRISE-MOCK", + "UNIT-TESTS", + "--retry=false", + "--debug", + "--pool-size=1", + ], + "outputCapture": "std", + "skipFiles": [ + "/**/*.js" + ] + }, { "type": "node", "request": "launch", "name": "Debug chrome_consumer_mock", + "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava", + "preLaunchTask": "npm: pretest-incremental", + "runtimeArgs": [ + "build/test/test/source/test.js", + "--verbose", + "--concurrency=1", + "--", + "CONSUMER-MOCK", + "STANDARD-GROUP", + "--retry=false", + "--debug", + "--pool-size=1", + ], + "outputCapture": "std", + "skipFiles": [ + "/**/*.js" + ] + }, + { + "type": "node", + "request": "launch", + "name": "Debug chrome_consumer_mock_flaky", + "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava", "preLaunchTask": "npm: pretest-incremental", - "program": "${workspaceFolder}/node_modules/ava/profile.js", - "args": [ + "runtimeArgs": [ "build/test/test/source/test.js", + "--verbose", + "--concurrency=1", + "--", "CONSUMER-MOCK", + "FLAKY-GROUP", + "--retry=false", + "--debug", "--pool-size=1", - "--debug" ], + "outputCapture": "std", "skipFiles": [ "/**/*.js" ] @@ -21,16 +93,23 @@ "type": "node", "request": "launch", "name": "Debug chrome_consumer_live_gmail", + "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava", "preLaunchTask": "npm: pretest-incremental", - "program": "${workspaceFolder}/node_modules/ava/profile.js", - "args": [ + "runtimeArgs": [ "build/test/test/source/test.js", + "--verbose", + "--concurrency=1", + "--", "CONSUMER-LIVE-GMAIL", - "--debug" + "STANDARD-GROUP", + "--retry=false", + "--debug", + "--pool-size=1", ], + "outputCapture": "std", "skipFiles": [ "/**/*.js" ] - } + }, ] } \ No newline at end of file