From a4ed56bd677014f5a1c1a963fe70509928df15d2 Mon Sep 17 00:00:00 2001 From: Manish Date: Thu, 9 Mar 2023 22:07:04 +1100 Subject: [PATCH] debugger configuration --- .vscode/launch.json | 17 +++++++++++++++++ .vscode/tasks.json | 16 ++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..94bc9a7 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + // 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": [ + { + "type": "lldb", + "request": "launch", + "name": "Debug", + "program": "${workspaceFolder}/build/${fileBasenameNoExtension}", + "args": [], + "cwd": "${workspaceFolder}", + "preLaunchTask": "build" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..0da2731 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,16 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "cmake", + "type": "shell", + "args": ["--build", "./build", "--target", "${fileBasenameNoExtension}"], + "problemMatcher": ["$tsc"], + "presentation": { + "reveal": "always" + }, + "group": "build" + } + ] +}