right now my launch.json file for debugging looks like this
{
// ${command:pickProcess}
"version": "0.2.0",
"configurations":
[{
"name": "(gdb) Attach",
"type": "cppdbg",
"request": "attach",
"program": "${workspaceFolder}/devel/lib/beginner_tutorials/talker",
"processId": "619",
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]}
but the things is that I need to manually update the processid every time, is that possible that for the "processId", I can invoke some kind of script and return a pid in programmatic manner? ex. "processId": ${shell_script: get_pid}