Skip to content
Snippets Groups Projects

Add config to launch apps by choosing their name

Merged Anna Wellmann requested to merge launchConfigs into main
1 file
+ 31
1
Compare changes
  • Side-by-side
  • Inline
+ 31
1
@@ -26,6 +26,36 @@
"ignoreFailures": true
}
]
},
// "program" accepts an input variable ${input:appName}, which is specified in the "inputs" sections
{
"name": "(gdb) Launch by App Name",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/bin/${input:appName}",
"cwd": "${workspaceFolder}/build",
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
],
// specify input variables
// "type": "pickString" - show a dropdown to let the user select from several options
// "default": specify the default option
// "options": ["App1", "GridGeneratorTests"] - add options to the dropdown menu
"inputs": [
{
"id": "appName",
"type": "pickString",
"default": "VirtualFluids_GPUTests",
"description": "The app name",
"options": ["App1", "GridGeneratorTests", "VirtualFluids_GPUTests"]
}
]
}
\ No newline at end of file
}
Loading