From 7845ad4b06931d458b2f81bc95201d5f4c87efbe Mon Sep 17 00:00:00 2001 From: Abdelrahman Said Date: Thu, 22 Jun 2023 00:12:28 +0100 Subject: [PATCH] Update VSCode debug config and settings --- .vscode/c_cpp_properties.json | 20 ++++++++++++++++++++ .vscode/launch.json | 16 +++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .vscode/c_cpp_properties.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..aef87ac --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,20 @@ +{ + "configurations": [ + { + "name": "Mac", + "includePath": [ + "${workspaceFolder}/**" + ], + "defines": [], + "macFrameworkPath": [ + "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks" + ], + "compilerPath": "/usr/bin/clang", + "cStandard": "c17", + "cppStandard": "c++17", + "intelliSenseMode": "macos-clang-arm64", + "compileCommands": "${workspaceFolder}/compile_commands.json" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 894994f..4630fc8 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,7 +5,7 @@ "version": "0.2.0", "configurations": [ { - "name": "Debug main", + "name": "(Linux) Debug main", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/main", @@ -17,6 +17,20 @@ "environment": [], "externalConsole": false, "MIMode": "gdb" + }, + { + "name": "(macOS) Debug main", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/main", + "args": [ + "${workspaceFolder}/test_files/menu.json" + ], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "lldb" } ] } \ No newline at end of file