From 53dd80e653b261bb56a63a834b1b078528de282b Mon Sep 17 00:00:00 2001 From: augustin64 Date: Fri, 30 Sep 2022 14:22:33 +0200 Subject: [PATCH] Update launch.json & tasks.json --- .vscode/launch.json | 37 +++++++------------------------------ .vscode/tasks.json | 18 +++++++++++++++++- 2 files changed, 24 insertions(+), 31 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index cd42fc4..59fe5e2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,7 +5,7 @@ "name": "mnist/main", "type": "cppdbg", "request": "launch", - "program": "${workspaceFolder}/out/main", + "program": "${workspaceFolder}/out/mnist_main", "args": [ "train", "--images", @@ -28,16 +28,16 @@ "ignoreFailures": false } ], - "preLaunchTask": "build" + "preLaunchTask": "build-mnist" }, { "name": "mnist/preview", "type": "cppdbg", "request": "launch", - "program": "${workspaceFolder}/out/preview", + "program": "${workspaceFolder}/out/mnist_preview", "args": [ - "images", - "labels" + "data/mnist/t10k-images-idx3-ubyte", + "data/mnist/t10k-labels-idx1-ubyte" ], "stopAtEntry": false, "cwd": "${workspaceFolder}", @@ -52,7 +52,7 @@ "ignoreFailures": false } ], - "preLaunchTask": "build" + "preLaunchTask": "build-mnist" }, { "name": "cnn/main", @@ -73,30 +73,7 @@ "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 - } - ] + "preLaunchTask": "build-cnn" } ] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 3509bee..5ddf58e 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -29,13 +29,29 @@ "detail": "Tâche générée par le débogueur." }, { - "label": "build", + "label": "build-all", "command": "${workspaceFolder}/make.sh", "args": [ "build", "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" } \ No newline at end of file