From e8bd296564fb6ecad83dba9f12486b049bf77535 Mon Sep 17 00:00:00 2001 From: Philemon Prevot <philemon.prevot@lis-lab.fr> Date: Tue, 22 Apr 2025 18:18:06 +0200 Subject: [PATCH] Add debug files to .vscode --- .vscode/launch.json | 26 +++++++++++++++++ .vscode/settings.json | 65 +++++++++++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 53 +++++++++++++++++++++++++++++++++++ 3 files changed, 144 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..c6d3c59 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,26 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Debug jasonrec", + "type": "cppdbg", + "preLaunchTask": "Configure and Build HighBlueParsers", + "request": "launch", + "program": "/usr/local/bin/jasonrec", // adjust if different + "args": ["3", "1", "256000", "debug_audio_file.wav", "--imu", "debug_imu_file.csv"], // replace with real args + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + } + ] + } + \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..4b96cbb --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,65 @@ +{ + "files.associations": { + "array": "cpp", + "atomic": "cpp", + "bit": "cpp", + "*.tcc": "cpp", + "cctype": "cpp", + "charconv": "cpp", + "chrono": "cpp", + "clocale": "cpp", + "cmath": "cpp", + "compare": "cpp", + "complex": "cpp", + "concepts": "cpp", + "csignal": "cpp", + "cstdarg": "cpp", + "cstddef": "cpp", + "cstdint": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "cstring": "cpp", + "ctime": "cpp", + "cwchar": "cpp", + "cwctype": "cpp", + "deque": "cpp", + "string": "cpp", + "unordered_map": "cpp", + "vector": "cpp", + "exception": "cpp", + "algorithm": "cpp", + "functional": "cpp", + "iterator": "cpp", + "memory": "cpp", + "memory_resource": "cpp", + "numeric": "cpp", + "optional": "cpp", + "random": "cpp", + "ratio": "cpp", + "string_view": "cpp", + "system_error": "cpp", + "tuple": "cpp", + "type_traits": "cpp", + "utility": "cpp", + "format": "cpp", + "fstream": "cpp", + "initializer_list": "cpp", + "iomanip": "cpp", + "iosfwd": "cpp", + "iostream": "cpp", + "istream": "cpp", + "limits": "cpp", + "new": "cpp", + "numbers": "cpp", + "ostream": "cpp", + "span": "cpp", + "sstream": "cpp", + "stdexcept": "cpp", + "streambuf": "cpp", + "cinttypes": "cpp", + "typeinfo": "cpp", + "variant": "cpp" + }, + "cmake.sourceDirectory": "/home/prevot/Bureau/highblueparsers/src", + "cmake.buildDirectory": "${workspaceFolder}/build" +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..52b16c1 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,53 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Build with CMake", + "type": "shell", + "command": "cmake", + "args": [ + "..", + "-DCMAKE_BUILD_TYPE=Release" + ], + "options": { + "cwd": "${workspaceFolder}/build" + }, + "problemMatcher": [] + }, + { + "label": "Make", + "type": "shell", + "command": "make", + "options": { + "cwd": "${workspaceFolder}/build" + }, + "dependsOn": [ + "Build with CMake" + ] + }, + { + "label": "Install", + "type": "shell", + "command": "sudo make install/strip", + "options": { + "cwd": "${workspaceFolder}/build" + }, + "dependsOn": [ + "Make" + ], + "problemMatcher": [ + "$gcc" + ] + }, + { + "label": "Configure and Build HighBlueParsers", + "dependsOn": ["Build with CMake", "Make", "Install"], + "dependsOrder": "sequence", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} \ No newline at end of file -- GitLab