From 8d0c619dc199e8be2a89e0a83304197c3b4b9c26 Mon Sep 17 00:00:00 2001 From: Alpyne <alpyne.dreams@gmail.com> Date: Sun, 14 May 2023 00:40:47 -0700 Subject: [PATCH] Run closechlink in deploySteps Fixes restarting the debugger as the deploySteps get run every time instead of just once. --- examples/debugprintfdemo/.vscode/launch.json | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/examples/debugprintfdemo/.vscode/launch.json b/examples/debugprintfdemo/.vscode/launch.json index 13c1789..beab402 100644 --- a/examples/debugprintfdemo/.vscode/launch.json +++ b/examples/debugprintfdemo/.vscode/launch.json @@ -10,14 +10,20 @@ "cwd": "${workspaceFolder}", "environment": [], "externalConsole": false, - "preLaunchTask": "run_flash_and_gdbserver", "MIMode": "gdb", + "deploySteps": [ + { + "type": "shell", + "continueOn": "GDBServer", + "command": "make --directory=${workspaceFolder} closechlink flash gdbserver" + }, + ], "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - } + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } ], "miDebuggerPath": "gdb-multiarch", "miDebuggerServerAddress": "127.0.0.1:2000" -- GitLab