Added vscode debugging setup

This commit is contained in:
Dmitriy Shishkov 2023-09-18 05:58:00 +03:00
parent f6a9b7a405
commit 0be879c3cb
Signed by: dm1sh
GPG Key ID: 027994B0AA357688
4 changed files with 41 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,6 +1,5 @@
tmp/
build/
.vscode/
a.out
test_*
**/exif.?

24
.vscode/launch.json vendored Normal file
View File

@ -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": ""
},
]
}

5
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"files.associations": {
"utils.h": "c"
}
}

12
.vscode/tasks.json vendored Normal file
View File

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