launch, task and test file

This commit is contained in:
Sven Hofmann 2025-11-01 14:25:02 +01:00
parent e1760c06b2
commit 39f3febc4f
3 changed files with 73 additions and 0 deletions

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

@ -0,0 +1,18 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug current C file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:/msys64/mingw64/bin/gdb.exe",
"preLaunchTask": "C/C++: gcc.exe build active file"
}
]
}

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

@ -0,0 +1,49 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build C file",
"type": "shell",
"command": "gcc",
"args": [
"-g",
"${fileBasename}",
"-o",
"${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"group": {
"kind": "build",
"isDefault": false
},
"problemMatcher": [
"$gcc"
]
},
{
"type": "cppbuild",
"label": "C/C++: gcc.exe build active file",
"command": "C:\\msys64\\mingw64\\bin\\gcc.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
]
}

6
Start_Windows/test.c Normal file
View File

@ -0,0 +1,6 @@
#include <stdio.h>
int main(){
printf("Hello Patric \n");
return 0;
}