Update launch.json & tasks.json

This commit is contained in:
augustin64 2022-09-30 14:22:33 +02:00
parent 3fc43ef988
commit 53dd80e653
2 changed files with 24 additions and 31 deletions

37
.vscode/launch.json vendored
View File

@ -5,7 +5,7 @@
"name": "mnist/main", "name": "mnist/main",
"type": "cppdbg", "type": "cppdbg",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/out/main", "program": "${workspaceFolder}/out/mnist_main",
"args": [ "args": [
"train", "train",
"--images", "--images",
@ -28,16 +28,16 @@
"ignoreFailures": false "ignoreFailures": false
} }
], ],
"preLaunchTask": "build" "preLaunchTask": "build-mnist"
}, },
{ {
"name": "mnist/preview", "name": "mnist/preview",
"type": "cppdbg", "type": "cppdbg",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/out/preview", "program": "${workspaceFolder}/out/mnist_preview",
"args": [ "args": [
"images", "data/mnist/t10k-images-idx3-ubyte",
"labels" "data/mnist/t10k-labels-idx1-ubyte"
], ],
"stopAtEntry": false, "stopAtEntry": false,
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",
@ -52,7 +52,7 @@
"ignoreFailures": false "ignoreFailures": false
} }
], ],
"preLaunchTask": "build" "preLaunchTask": "build-mnist"
}, },
{ {
"name": "cnn/main", "name": "cnn/main",
@ -73,30 +73,7 @@
"ignoreFailures": false "ignoreFailures": false
} }
], ],
"preLaunchTask": "build" "preLaunchTask": "build-cnn"
},
{
"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
}
]
} }
] ]
} }

18
.vscode/tasks.json vendored
View File

@ -29,13 +29,29 @@
"detail": "Tâche générée par le débogueur." "detail": "Tâche générée par le débogueur."
}, },
{ {
"label": "build", "label": "build-all",
"command": "${workspaceFolder}/make.sh", "command": "${workspaceFolder}/make.sh",
"args": [ "args": [
"build", "build",
"all" "all"
] ]
}, },
{
"label": "build-mnist",
"command": "${workspaceFolder}/make.sh",
"args": [
"build",
"mnist"
]
},
{
"label": "build-cnn",
"command": "${workspaceFolder}/make.sh",
"args": [
"build",
"cnn"
]
},
], ],
"version": "2.0.0" "version": "2.0.0"
} }