diff --git a/C_Template/.vscode/launch.json b/C_Template/.vscode/launch.json new file mode 100644 index 0000000..32f2ae3 --- /dev/null +++ b/C_Template/.vscode/launch.json @@ -0,0 +1,38 @@ +{ + "configurations": [ + { + "name": "Launch with puzzle input", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build/CTemplate", + "args": ["../puzzle.input"], + "stopAtEntry": true, + "cwd": "${workspaceFolder}/build/", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ], + "preLaunchTask": "build", + }, + { + "name": "Launch with test input", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build/CTemplate", + "args": ["../test.input"], + "stopAtEntry": true, + "cwd": "${workspaceFolder}/build/", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ], + "preLaunchTask": "build", + } + ] +} diff --git a/C_Template/.vscode/tasks.json b/C_Template/.vscode/tasks.json new file mode 100644 index 0000000..4e13acb --- /dev/null +++ b/C_Template/.vscode/tasks.json @@ -0,0 +1,26 @@ +{ +"version": "2.0.0", +"tasks": [ + { + "label": "cmake", + "type": "shell", + "options": { + "cwd": "${workspaceFolder}" + }, + "command": "sh", + "args": [ + "-c", + "'mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug ..'" + ], + }, + { + "label": "build", + "type": "shell", + "command": "make", + "options": { + "cwd": "${workspaceRoot}/build" + }, + "dependsOn":["cmake"] + } + ] +} diff --git a/C_Template/test.input b/C_Template/test.input new file mode 100644 index 0000000..e69de29