From 91a9acafc694d576880504394ce3b0820f3b2a61 Mon Sep 17 00:00:00 2001
From: Philemon Prevot <philemon.prevot@lis-lab.fr>
Date: Thu, 24 Apr 2025 15:19:37 +0200
Subject: [PATCH] Update debug files

---
 .gitignore                    |  3 +--
 .vscode/c_cpp_properties.json | 17 +++++++++++++++++
 .vscode/launch.json           |  4 ++--
 .vscode/tasks.json            |  6 +++---
 4 files changed, 23 insertions(+), 7 deletions(-)
 create mode 100644 .vscode/c_cpp_properties.json

diff --git a/.gitignore b/.gitignore
index be2b66a..f3d6549 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
-/build/
-/.vscode
\ No newline at end of file
+/build/
\ No newline at end of file
diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json
new file mode 100644
index 0000000..4ace5d5
--- /dev/null
+++ b/.vscode/c_cpp_properties.json
@@ -0,0 +1,17 @@
+{
+    "configurations": [
+        {
+            "name": "Linux",
+            "includePath": [
+                "${workspaceFolder}/**",
+                "/usr/include/libusb-1.0"
+            ],
+            "defines": [],
+            "compilerPath": "/usr/bin/gcc",
+            "cStandard": "c17",
+            "cppStandard": "gnu++17",
+            "intelliSenseMode": "linux-gcc-x64"
+        }
+    ],
+    "version": 4
+}
\ No newline at end of file
diff --git a/.vscode/launch.json b/.vscode/launch.json
index c6d3c59..be5fa7e 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -6,8 +6,8 @@
         "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
+        "program": "${workspaceFolder}/build/src/jasonrec",
+        "args": ["3", "1", "256000", "debug_audio_file_%Y%m%d_%H%M%S.wav", "--imu", "debug_imu_file_%Y%m%d_%H%M%S.csv"],              // replace with real args
         "stopAtEntry": false,
         "cwd": "${workspaceFolder}",
         "environment": [],
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 52b16c1..4bd9753 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -7,7 +7,7 @@
 			"command": "cmake",
 			"args": [
 				"..",
-				"-DCMAKE_BUILD_TYPE=Release"
+				"-DCMAKE_BUILD_TYPE=Debug"
 			],
 			"options": {
 				"cwd": "${workspaceFolder}/build"
@@ -28,7 +28,7 @@
 		{
 			"label": "Install",
 			"type": "shell",
-			"command": "sudo make install/strip",
+			"command": "sudo make install",
 			"options": {
 				"cwd": "${workspaceFolder}/build"
 			},
@@ -41,7 +41,7 @@
 		},
 		{
 			"label": "Configure and Build HighBlueParsers",
-			"dependsOn": ["Build with CMake", "Make", "Install"],
+			"dependsOn": ["Build with CMake", "Make"],
 			"dependsOrder": "sequence",
 			"problemMatcher": [],
 			"group": {
-- 
GitLab