From daf410ec7e13efc40c34971a775ffb8e69314d9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Le=20Sommer?= Date: Fri, 30 Jan 2026 12:27:35 +0100 Subject: [PATCH] Add VSCode configuration files for build and debugging tasks --- .vscode/launch.json | 61 +++++++++++++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 36 ++++++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..5b60e8b --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,61 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Build: Release", + "type": "node-terminal", + "request": "launch", + "preLaunchTask": "Build: Release", + "command": "echo 'Build Release terminé !'" + }, + { + "name": "Build: Debug", + "type": "node-terminal", + "request": "launch", + "preLaunchTask": "Build: Debug", + "command": "echo 'Build Debug terminé !'" + }, + { + "name": "Clean Build Folders", + "type": "node-terminal", + "request": "launch", + "preLaunchTask": "Clean Build Folders", + "command": "echo 'Nettoyage terminé !'" + }, + { + "name": "Attach to Running Program (No Flash)", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build/debug/bibotron.ino.elf", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "miDebuggerPath": "/Users/lea/Library/Arduino15/packages/esp32/tools/xtensa-esp-elf-gdb/16.3_20250913/bin/xtensa-esp32s3-elf-gdb", + "miDebuggerServerAddress": "10.13.12.168:3333", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Set remote hardware watchpoint limit", + "text": "set remote hardware-watchpoint-limit 2", + "ignoreFailures": false + } + ], + "postRemoteConnectCommands": [ + { + "description": "Interrupt the running program", + "text": "interrupt", + "ignoreFailures": true + } + ], + "serverLaunchTimeout": 20000, + "serverStarted": "Listening on port 3333 for gdb connections" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..6053c3a --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,36 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Build: Release", + "type": "shell", + "command": "arduino-cli compile --fqbn esp32:esp32:esp32s3box --build-property \"build.partitions=default_16MB\" --output-dir ./build/release .", + "group": { + "kind": "build", + "isDefault": true + }, + "presentation": { + "reveal": "always", + "panel": "shared" + }, + "problemMatcher": [] + }, + { + "label": "Build: Debug", + "type": "shell", + "command": "arduino-cli compile --fqbn esp32:esp32:esp32s3box --build-property \"build.partitions=default_16MB\" --build-property \"build.code_debug=5\" --output-dir ./build/debug .", + "group": "build", + "presentation": { + "reveal": "always", + "panel": "shared" + }, + "problemMatcher": [] + }, + { + "label": "Clean Build Folders", + "type": "shell", + "command": "rm -rf ./build", + "problemMatcher": [] + } + ] +}