From 98c9aed3b71a2a86854e336b77c699e6111a327f Mon Sep 17 00:00:00 2001 From: Callum Forrester Date: Wed, 5 Jul 2023 10:49:35 +0100 Subject: [PATCH 1/2] Add debug config for launching all devices in examples --- .vscode/launch.json | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index f65cb376..7b30fc56 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,6 +4,15 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + { + "name":"Device Simulation", + "type":"python", + "request":"launch", + "module":"tickit", + "justMyCode":false, + "console": "integratedTerminal", + "args": ["all", "${input:deviceConfig}"] + }, { "name": "Debug Unit Test", "type": "python", @@ -21,5 +30,22 @@ "PYTEST_ADDOPTS": "--no-cov" }, } - ] + ], + // Requires the following extension: + // Name: Command Variable + // Id: rioj7.command-variable + // Description: Calculate command variables for launch.json and tasks.json + // Version: 1.54.1 + // Publisher: rioj7 + // VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=rioj7.command-variable + "inputs": [ + { + "id": "deviceConfig", + "type": "command", + "command": "extension.commandvariable.file.pickFile", + "args": { + "include": "examples/**/*.{yaml,yml}", + } + } + ] } \ No newline at end of file From 9acba5954898b64dda00a18255f8298ccd3d5da7 Mon Sep 17 00:00:00 2001 From: Callum Forrester Date: Wed, 5 Jul 2023 10:51:01 +0100 Subject: [PATCH 2/2] Include s03_configs --- .vscode/launch.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 7b30fc56..3800c8f0 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -44,7 +44,7 @@ "type": "command", "command": "extension.commandvariable.file.pickFile", "args": { - "include": "examples/**/*.{yaml,yml}", + "include": "{examples,s03_configs}/**/*.{yaml,yml}", } } ]