diff --git a/configuration/.vscode/launch.json b/configuration/.vscode/launch.json index defc8d30cdd6d98695677b792ce1abfc80dd0de6..817f50a70c25b4f75b4a13444df463a3a2b6783e 100644 --- a/configuration/.vscode/launch.json +++ b/configuration/.vscode/launch.json @@ -8,7 +8,34 @@ "args": [], "cwd": "${workspaceFolder}", "preLaunchTask": "Build Executable", - "internalConsoleOptions": "neverOpen", + "internalConsoleOptions": "neverOpen" + }, + { + "name": "C/C++: TDT4102 Build and Run Debug", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/builddir/program", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Set Disassembly Flavor to Intel", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ], + "preLaunchTask": "TDT4102 Build Executable", + "miDebuggerPath": "gdb" } - ] + ], + "version": "2.0.0" } \ No newline at end of file diff --git a/configuration/.vscode/tasks.json b/configuration/.vscode/tasks.json index aac38799d8fabdeb93badf1c32ace2a7fc27f830..4b4f59c4d045f6e500e56629eee0f54b0d09df91 100644 --- a/configuration/.vscode/tasks.json +++ b/configuration/.vscode/tasks.json @@ -4,8 +4,29 @@ { "type": "shell", "label": "Build Executable", + "command": "meson compile -Cbuilddir", + "group": "build", + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared", + "showReuseMessage": true, + "clear": true + }, + "problemMatcher": [] + }, + { + "type": "cppbuild", + "label": "TDT4102 Build Executable", "command": "meson", - "args": ["compile", "-Cbuilddir"], + "args": [ + "compile", + "-Cbuilddir" + ], + "options": { + "cwd": "${workspaceFolder}" + }, "group": { "kind": "build", "isDefault": true @@ -17,7 +38,8 @@ "panel": "shared", "showReuseMessage": true, "clear": true - } + }, + "detail": "Task generated by TDT4102 ." } ] -} +} \ No newline at end of file