Update VSCode debug config and settings

This commit is contained in:
Abdelrahman Said 2023-06-22 00:12:28 +01:00
parent 6912f689f1
commit 7845ad4b06
2 changed files with 35 additions and 1 deletions

20
.vscode/c_cpp_properties.json vendored Normal file
View File

@ -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
}

16
.vscode/launch.json vendored
View File

@ -5,7 +5,7 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "Debug main", "name": "(Linux) Debug main",
"type": "cppdbg", "type": "cppdbg",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/main", "program": "${workspaceFolder}/main",
@ -17,6 +17,20 @@
"environment": [], "environment": [],
"externalConsole": false, "externalConsole": false,
"MIMode": "gdb" "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"
} }
] ]
} }