Add tasks.json & launch.json

This commit is contained in:
augustin64 2022-09-14 10:07:29 +02:00
parent 8b4b7b19f6
commit 204e4ce520
2 changed files with 162 additions and 0 deletions

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

@ -0,0 +1,102 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "mnist/main",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/out/main",
"args": [
"train",
"--images",
"${workspaceFolder}/data/mnist/train-images-idx3-ubyte",
"--labels",
"${workspaceFolder}/data/mnist/train-labels-idx1-ubyte",
"--out",
"${workspaceFolder}/.test-cache/reseau.bin"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": false
}
],
"preLaunchTask": "build"
},
{
"name": "mnist/preview",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/out/preview",
"args": [
"images",
"labels"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": false
}
],
"preLaunchTask": "build"
},
{
"name": "cnn/main",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/out/cnn_main",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": false
}
],
"preLaunchTask": "build"
},
{
"name": "C/C++ Runner: Debug Session",
"type": "cppdbg",
"request": "launch",
"args": [
""
],
"stopAtEntry": false,
"cwd": "/home/augustin64/Documents/tipe/projet-tipe",
"environment": [],
"program": "/home/augustin64/Documents/tipe/projet-tipe/build/Debug/outDebug",
"internalConsoleOptions": "openOnSessionStart",
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"externalConsole": false,
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}

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

@ -0,0 +1,60 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc générer le fichier actif",
"command": "/usr/bin/gcc",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${workspaceFolder}/out/${fileBasenameNoExtension}",
"-lm",
"-lpthread",
"-std=c99",
"-Wall",
"-Wextra"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Tâche générée par le débogueur."
},
{
"type": "build",
"label": "C: gcc générer le fichier actif",
"command": "gcc",
"args": [
"-g",
"${file}",
"-o",
"${workspaceFolder}/out/${fileBasenameNoExtension}",
"-lm",
"-lpthread",
"-std=c99",
"-Wall",
"-Wextra"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Tâche générée par le débogueur."
}
],
"version": "2.0.0"
}