From 0be879c3cbace34bf5b5d10aed8d37a71acc82c2 Mon Sep 17 00:00:00 2001 From: dm1sh Date: Mon, 18 Sep 2023 05:58:00 +0300 Subject: [PATCH] Added vscode debugging setup --- .gitignore | 1 - .vscode/launch.json | 24 ++++++++++++++++++++++++ .vscode/settings.json | 5 +++++ .vscode/tasks.json | 12 ++++++++++++ 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.gitignore b/.gitignore index d0d1599..6944f75 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ tmp/ build/ -.vscode/ a.out test_* **/exif.? \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..0641ac8 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,24 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "C makefile launch", + "type": "cppdbg", + "request": "launch", + "targetArchitecture": "x64", + "program": "${workspaceRoot}/build/server", + "args": ["5000"], + "stopAtEntry": false, + "cwd": "${workspaceRoot}", + "environment": [], + "externalConsole": true, + "linux": { + "MIMode": "gdb", + }, + "miDebuggerArgs": "" + }, + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..efafeb2 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "utils.h": "c" + } +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..2d0b98e --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,12 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Build makefile project", + "type": "shell", + "command": "make" + } + ] +} \ No newline at end of file