From 5ceb60a581961a7d4a63717dd0a40827726c4935 Mon Sep 17 00:00:00 2001 From: timerix Date: Fri, 9 Sep 2022 19:10:49 +0600 Subject: [PATCH] .vscode --- .gitignore | 1 - .vscode/.gitignore | 1 + .vscode/launch.json | 34 +++++++++++++++++++++++++++ .vscode/tasks.json | 57 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 .vscode/.gitignore create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.gitignore b/.gitignore index 6e5b49f..d59895f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,6 @@ obj/ # user files .old*/ .vs/ -.vscode/ .vshistory/ .editorconfig *.user diff --git a/.vscode/.gitignore b/.vscode/.gitignore new file mode 100644 index 0000000..c3d3a20 --- /dev/null +++ b/.vscode/.gitignore @@ -0,0 +1 @@ +settings.json \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..421e47a --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,34 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "(gdb) Debug", + "type": "cppdbg", + "request": "launch", + "preLaunchTask": "build_exec_dbg", + "program": "${workspaceFolder}/bin/kerep.com", + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "externalConsole": true, + "internalConsoleOptions": "openOnSessionStart", + "miDebuggerPath": "/usr/bin/gdb", + "MIMode": "gdb", + "pipeTransport": { + "debuggerPath": "gdb", + "pipeProgram": "bash", + "pipeArgs": ["-c"], + "pipeCwd": "${workspaceFolder}" + } + }, + { + "name": "(msvc) Debug", + "type": "cppvsdbg", + "request": "launch", + "preLaunchTask": "build_dbg", + "cwd": "${workspaceFolder}\\bin", + "program": "${workspaceFolder}\\bin\\kerep.com", + "stopAtEntry": false, + "console": "integratedTerminal" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..7fb803b --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,57 @@ + +{ + + "version": "2.0.0", + "tasks": [ + { + "label": "build_exec", + "detail": "build project", + "type": "cppbuild", + "command": "make", + "args": [ + "build_exec" + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": ["$gcc"], + "group": { + "kind": "build", + "isDefault": true + }, + "presentation": { + "echo": true, + "reveal": "always", + "focus": true, + "panel": "shared", + "showReuseMessage": false, + "clear": true + } + }, + + { + "label": "build_exec_dbg", + "detail": "build project with debug symbols", + "type": "cppbuild", + "command": "make", + "args": [ + "build_exec_dbg" + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": ["$gcc"], + "group": { + "kind": "build" + }, + "presentation": { + "echo": true, + "reveal": "always", + "focus": true, + "panel": "shared", + "showReuseMessage": false, + "clear": true + } + } + ] + } \ No newline at end of file