feat: add VS Code debugging configuration and environment dependencies for gcompose

This commit is contained in:
AndreaRigoni
2026-04-08 08:21:13 +00:00
parent 3af983a955
commit 03a3130855
4 changed files with 53 additions and 0 deletions

3
.vscode/gdb_wrapper.sh vendored Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
export DISPLAY=:1001.0
/home/share/micromamba/bin/micromamba run -n uLib /usr/bin/gdb "$@"

31
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,31 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "gcompose",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/app/gcompose/gcompose",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [
{ "name": "DISPLAY", "value": ":1001.0" }
],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "Build gcompose",
"miDebuggerPath": "${workspaceFolder}/.vscode/gdb_wrapper.sh"
}
]
}

17
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,17 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build gcompose",
"type": "shell",
"command": "/home/share/micromamba/bin/micromamba run -n uLib cmake --build build --target gcompose -j$(nproc)",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
]
}
]
}

View File

@@ -17,3 +17,5 @@ dependencies:
- ccache
- OpenMP
- Geant4
- gdb
- valgrind