From 93914e188a8eecaeef22e7b5540686c459154346 Mon Sep 17 00:00:00 2001 From: medina5 Date: Mon, 10 Nov 2025 13:46:29 +0100 Subject: [PATCH] settings.json --- td6.md | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/td6.md b/td6.md index eedee1d..b902614 100644 --- a/td6.md +++ b/td6.md @@ -84,6 +84,8 @@ Date Type Montant Solde actuel : 150.00 € ``` +## Compilation + ## NCurses @@ -130,3 +132,61 @@ char nom[30]; mvprintw(3, 5, "Nom : "); getstr(nom); ``` + +fichier tasks.json + +```json +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build banque", + "type": "shell", + "command": "gcc", + "args": [ + "banque.c", + "-g", // inclut les symboles de debug + "-lncurses", // lie la bibliothèque ncurses + "-o", + "banque" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": ["$gcc"], + "detail": "Compilation du programme banque.c avec ncurses" + } + ] +} +``` + +fichier settings.json + +```json +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Debug Banque (ncurses)", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/banque", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": true, + "MIMode": "gdb", + "miDebuggerPath": "/usr/bin/gdb", + "preLaunchTask": "build banque", + "setupCommands": [ + { + "description": "Activer l'impression pretty", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + } +} +```