WebFreak001 / code-debug

Native debugging for VSCode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamically choose PID to attach

v-lopez opened this issue · comments

When attaching to an application, having to set manually the PID on the launch.json breaks quite a bit the flow.

Would it be possible to use the ${command:pickProcess} as is done on the default C++ debugger?

Ideally: also provide an optional filter to the command (that would allow to specify [part of] the application name or even better [part of] the cmd [= arguments passed] along with the command / user) that would make it much easier to choose the right process, not "one of the three interesting of the thousand processes running on that server".

{
"version": "0.2.0",
"configurations": [
{
"name": "COBOL debugger attach",
"type": "gdb",
"request": "attach",
"target": "${input:pid}",
"valuesFormatting": "parseText",
"showDevDebugOutput": false,
"printCalls": false,
"debugger_args": []
}
],
"inputs": [
{
"id": "pid",
"type": "promptString",
"description": "PID to attach"
}
]
}