Is there a way to configure what happens when I press "Launch selected target without debugging" command in CMakeTools in VSCode?
My problem is that the target is launched but it doesn't pick up the config file I specified in my launch.json for the Debug configuration:
launch.json:
{
// 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": "Debug",
"type": "lldb",
"request": "launch",
"program": "${command:cmake.launchTargetPath}",
"args": [
"/home/<myuser>/dev/my_api_conf.ini"
],
"cwd": "${workspaceRoot}",
"preLaunchTask": "${defaultBuildTask}",
"initCommands": [ "command source ${workspaceRoot}/.lldbinit"]
}
]
}
